mirror of https://github.com/mpolden/echoip
Fix test
This commit is contained in:
parent
67e220501e
commit
6e09b06e7d
|
@ -97,8 +97,8 @@ func TestGetIPWithoutReverse(t *testing.T) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
if header := "X-Ifconfig-Hostname"; strings.Contains(out, header) {
|
if key := "hostname"; strings.Contains(out, key) {
|
||||||
t.Errorf("Expected response to not contain %q", header)
|
t.Errorf("Expected response to not key %q", key)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue