assert: invalid memory address or nil pointer dereference for assert.Error on darwin/arm64 #1655
-
I was testing our project on
Almost all errors occurred when calling func assertError(t *testing.T, err error, msg string) {
t.Helper()
assert.Error(t, err) // Line 36
assert.Equal(t, msg, err.Error())
} I'm not sure if this was caused by |
Beta Was this translation helpful? Give feedback.
Answered by
brackendawson
Oct 4, 2024
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Precisely, eg: