dhcp4d_test: fix message to match comparison

This commit is contained in:
Michael Stapelberg 2019-01-01 10:44:03 +01:00
parent b923f145a5
commit 0d2e89cebf

View File

@ -155,7 +155,7 @@ func TestPreferredAddress(t *testing.T) {
p := request(net.IPv4zero, hardwareAddr)
resp := handler.serveDHCP(p, dhcp4.Discover, p.ParseOptions())
if got, want := resp.YIAddr().To4(), addr.To4(); bytes.Equal(got, want) {
t.Errorf("DHCPOFFER for wrong IP: got %v, want %v", got, want)
t.Errorf("DHCPOFFER for wrong IP: got %v, want anything else", got)
}
})