mirror of
https://github.com/mpolden/echoip.git
synced 2024-11-10 07:27:22 +01:00
Fix test
This commit is contained in:
parent
67e220501e
commit
6e09b06e7d
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user