From 0d2e89cebfdc5e1a70b331d9f722915abca72b40 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Tue, 1 Jan 2019 10:44:03 +0100 Subject: [PATCH] dhcp4d_test: fix message to match comparison --- internal/dhcp4d/dhcp4d_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/dhcp4d/dhcp4d_test.go b/internal/dhcp4d/dhcp4d_test.go index 517b72d..10df6e3 100644 --- a/internal/dhcp4d/dhcp4d_test.go +++ b/internal/dhcp4d/dhcp4d_test.go @@ -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) } })