Use `errors.Is()` in Golang tests
marcelamelara opened this issue · comments
Marcela Melara commented
Instead of using the assert.Error()
function, which checks that an error occurred, in a future where our validation functions return more errors, we might also use errors.Is()
to check that we get the same error back.
Originally posted by @pxp928 in #220 (comment)