mirror of
https://github.com/mpolden/echoip.git
synced 2025-06-25 20:27:50 +02:00
Fix test
This commit is contained in:
@ -97,8 +97,8 @@ func TestGetIPWithoutReverse(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if header := "X-Ifconfig-Hostname"; strings.Contains(out, header) {
|
||||
t.Errorf("Expected response to not contain %q", header)
|
||||
if key := "hostname"; strings.Contains(out, key) {
|
||||
t.Errorf("Expected response to not key %q", key)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user