Skip to content

Commit d34352a

Browse files
committed
deserializer unit tests
Signed-off-by: aaadir <adir@il.ibm.com>
1 parent d6666b8 commit d34352a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

token/services/identity/deserializer/deserializer_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func TestTypedAuditInfoMatcher(t *testing.T) {
7979
err := typedMatcher.Match(context.Background(), typedID)
8080
require.Error(t, err)
8181
assert.Contains(t, err.Error(), "failed to match identity")
82-
assert.ErrorIs(t, err, expectedErr)
82+
require.ErrorIs(t, err, expectedErr)
8383
assert.Equal(t, 1, matcher.MatchCallCount())
8484
})
8585
}
@@ -577,7 +577,7 @@ func TestTypedVerifierDeserializerMultiplex(t *testing.T) {
577577

578578
require.Error(t, err)
579579
assert.Contains(t, err.Error(), "failed to match identity to audit infor")
580-
assert.ErrorIs(t, err, expectedErr)
580+
require.ErrorIs(t, err, expectedErr)
581581
assert.Equal(t, 1, mockDeserializer.GetAuditInfoMatcherCallCount())
582582
assert.Equal(t, 1, mockMatcher.MatchCallCount())
583583
})
@@ -851,7 +851,7 @@ func TestTypedIdentityVerifierDeserializer(t *testing.T) {
851851

852852
require.Error(t, err)
853853
assert.Contains(t, err.Error(), "failed getting audit info for recipient identity")
854-
assert.ErrorIs(t, err, expectedErr)
854+
require.ErrorIs(t, err, expectedErr)
855855
assert.Equal(t, 1, provider.GetAuditInfoCallCount())
856856
})
857857

0 commit comments

Comments
 (0)