use require.EqualError() in tests

This commit is contained in:
aler9
2021-11-03 17:52:45 +01:00
parent e3d13be611
commit 78bfa5d6a8
25 changed files with 43 additions and 43 deletions

View File

@@ -43,7 +43,7 @@ func TestURLParseErrors(t *testing.T) {
} {
t.Run(ca.name, func(t *testing.T) {
_, err := ParseURL(ca.enc)
require.Equal(t, ca.err, err.Error())
require.EqualError(t, err, ca.err)
})
}
}