diff --git a/pkg/rfc2317/arpa_test.go b/pkg/rfc2317/arpa_test.go index 3523cce7d..67e18028a 100644 --- a/pkg/rfc2317/arpa_test.go +++ b/pkg/rfc2317/arpa_test.go @@ -117,7 +117,7 @@ func TestCidrToInAddr(t *testing.T) { if err == nil { // ...but we didn't get one. t.Errorf("Expected ERROR('%s') but got result '%s'", tst.errmsg, d) - } if err.Error() != tst.errmsg { + } else if err.Error() != tst.errmsg { // ...but not the right error. t.Errorf("Expected ERROR('%s') but got ERROR('%s')", tst.errmsg, err) }