Skip to content

Commit

Permalink
fix expected behaviour in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zekroTJA committed Aug 7, 2024
1 parent f27996b commit 04824ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions error_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -90,6 +90,6 @@ func TestCast(t *testing.T) {
}

castErrCode := Cast(err).Code()
assert.Equal(t, errCode, castErrCode)
assert.Equal(t, CodeUnexpected, castErrCode)
})
}

0 comments on commit 04824ef

Please sign in to comment.