Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
x1m3 committed Aug 18, 2023
1 parent 8ef7551 commit af25966
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/api_ui/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func TestServer_AuthQRCode(t *testing.T) {
sessionRepository := repositories.NewSessionCached(cachex)

identityService := services.NewIdentity(&KMSMock{}, identityRepo, mtRepo, identityStateRepo, mtService, qrService, claimsRepo, revocationRepository, connectionsRepository, storage, rhsp, nil, sessionRepository, pubsub.NewMock())
server := NewServer(&cfg, identityService, NewClaimsMock(), NewSchemaMock(), NewConnectionsMock(), NewLinkMock(), nil, NewPublisherMock(), NewPackageManagerMock(), nil)
server := NewServer(&cfg, identityService, NewClaimsMock(), NewSchemaMock(), NewConnectionsMock(), NewLinkMock(), qrService, NewPublisherMock(), NewPackageManagerMock(), nil)
issuerDID, err := core.ParseDID("did:polygonid:polygon:mumbai:2qE1BZ7gcmEoP2KppvFPCZqyzyb5tK9T6Gec5HFANQ")
require.NoError(t, err)
server.cfg.APIUI.IssuerDID = *issuerDID
Expand Down Expand Up @@ -198,7 +198,7 @@ func TestServer_AuthQRCode(t *testing.T) {
assert.Equal(t, v.From, realQR.From)
assert.Equal(t, v.Body.Scope, realQR.Body.Scope)
assert.Equal(t, v.Body.Reason, realQR.Body.Reason)
assert.True(t, strings.Contains(v.Body.CallbackURL, realQR.Body.CallbackURL))
assert.True(t, strings.Contains(realQR.Body.CallbackURL, v.Body.CallbackURL))
}
})
}
Expand Down

0 comments on commit af25966

Please sign in to comment.