Skip to content

Commit

Permalink
Discovery: improve test stability (#2795)
Browse files Browse the repository at this point in the history
  • Loading branch information
reinkrul authored Feb 14, 2024
1 parent 729c5fd commit c0f8b02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions discovery/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@ func Test_clientUpdater_update(t *testing.T) {
store := setupStore(t, storageEngine.GetSQLDatabase())
ctrl := gomock.NewController(t)
httpClient := client.NewMockHTTPClient(ctrl)
httpClient.EXPECT().Get(gomock.Any(), gomock.Any(), gomock.Any()).Return([]vc.VerifiablePresentation{}, "test", nil)
httpClient.EXPECT().Get(gomock.Any(), gomock.Any(), gomock.Any()).Return(nil, "", errors.New("test"))
httpClient.EXPECT().Get(gomock.Any(), "http://example.com/usecase", gomock.Any()).Return([]vc.VerifiablePresentation{}, "test", nil)
httpClient.EXPECT().Get(gomock.Any(), "http://example.com/other", gomock.Any()).Return(nil, "", errors.New("test"))
updater := newClientUpdater(testDefinitions(), store, alwaysOkVerifier, httpClient)

err := updater.update(context.Background())
Expand Down

0 comments on commit c0f8b02

Please sign in to comment.