From af2596622d104095341c3694ce8f7c4c54dfaab5 Mon Sep 17 00:00:00 2001 From: x1m3 Date: Fri, 18 Aug 2023 17:20:05 +0200 Subject: [PATCH] fix: test --- internal/api_ui/server_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/api_ui/server_test.go b/internal/api_ui/server_test.go index e45c45c27..b6a2c48a6 100644 --- a/internal/api_ui/server_test.go +++ b/internal/api_ui/server_test.go @@ -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 @@ -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)) } }) }