diff --git a/error_test.go b/error_test.go index ff776c7..3c109c4 100644 --- a/error_test.go +++ b/error_test.go @@ -70,7 +70,7 @@ func TestCast(t *testing.T) { } castErrCode := Cast(err).Code() - assert.Equal(t, errCode, castErrCode) + assert.Equal(t, CodeUnexpected, castErrCode) }) t.Run("custom-model-wrapped", func(t *testing.T) { @@ -90,6 +90,6 @@ func TestCast(t *testing.T) { } castErrCode := Cast(err).Code() - assert.Equal(t, errCode, castErrCode) + assert.Equal(t, CodeUnexpected, castErrCode) }) }