Skip to content

Commit c6f7376

Browse files
committed
fixup assert test
1 parent 28eb806 commit c6f7376

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

enterprise/dbcrypt/dbcrypt_internal_test.go

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,14 @@ func TestUserLinks(t *testing.T) {
5454
expectedClaims := database.UserLinkClaims{
5555
IDTokenClaims: map[string]interface{}{
5656
"sub": "123",
57-
"groups": []string{
57+
"groups": []interface{}{
5858
"foo", "bar",
5959
},
6060
},
6161
UserInfoClaims: map[string]interface{}{
62-
"number": 1,
63-
"struct": struct {
64-
Number int
65-
}{
66-
Number: 2,
62+
"number": float64(2),
63+
"struct": map[string]interface{}{
64+
"number": float64(2),
6765
},
6866
},
6967
}
@@ -85,7 +83,7 @@ func TestUserLinks(t *testing.T) {
8583
require.NoError(t, err)
8684
requireEncryptedEquals(t, ciphers[0], rawLink.OAuthAccessToken, "access")
8785
requireEncryptedEquals(t, ciphers[0], rawLink.OAuthRefreshToken, "refresh")
88-
require.Equal(t, expectedClaims, rawLink.Claims)
86+
require.EqualValues(t, expectedClaims, rawLink.Claims)
8987
})
9088

9189
t.Run("GetUserLinkByLinkedID", func(t *testing.T) {

0 commit comments

Comments
 (0)