Update pkg/rfc2317/arpa_test.go

This commit is contained in:
Tom Limoncelli 2023-09-19 16:27:04 -04:00 committed by GitHub
parent 4e6b4d8343
commit 1114d48888
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,7 +117,7 @@ func TestCidrToInAddr(t *testing.T) {
if err == nil { if err == nil {
// ...but we didn't get one. // ...but we didn't get one.
t.Errorf("Expected ERROR('%s') but got result '%s'", tst.errmsg, d) 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. // ...but not the right error.
t.Errorf("Expected ERROR('%s') but got ERROR('%s')", tst.errmsg, err) t.Errorf("Expected ERROR('%s') but got ERROR('%s')", tst.errmsg, err)
} }