From 424d5cc07f7e256ae414a82a2ac6ffb680d963fc Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 8 Jun 2018 15:18:24 +0200 Subject: [PATCH] dhcpv4: fail test on temporary errors, too --- integrationdhcpv4_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/integrationdhcpv4_test.go b/integrationdhcpv4_test.go index 3eabe5b..87a7826 100644 --- a/integrationdhcpv4_test.go +++ b/integrationdhcpv4_test.go @@ -90,6 +90,9 @@ func TestDHCPv4(t *testing.T) { if !c.ObtainOrRenew() { t.Fatal(c.Err()) } + if err := c.Err(); err != nil { + t.Fatal(err) + } cfg := c.Config() t.Logf("cfg = %+v", cfg) if got, want := cfg.Router, "192.168.23.1"; got != want {