Fixed add, remove is now failing the test (as expected)

pull/13/head
Chris Bednarski 10 years ago
parent f5dea78ac3
commit 6b38e95bba

@ -55,6 +55,7 @@ func (h *Hostlist) Add(host *Hostname) error {
host.Domain, host.Ip, found.Ip))
}
}
*h = append(*h, host)
return nil
}

@ -53,6 +53,6 @@ func TestRemove(t *testing.T) {
// }
if hosts.ContainsDomain("google.com") {
t.Errorf("Expected not to find google.com in %s", hosts)
t.Errorf("Expected not to find google.com")
}
}

Loading…
Cancel
Save