From 04824eff4da07fbe3e19398a66967101591ed5f3 Mon Sep 17 00:00:00 2001 From: Ringo Hoffmann Date: Wed, 7 Aug 2024 11:57:43 +0200 Subject: [PATCH] fix expected behaviour in tests --- error_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) }) }