Skip to content

Commit

Permalink
test(credential): Potential fix for race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
moduli committed Apr 1, 2024
1 parent ad430b2 commit 3be0040
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/credential/service_list_stores_ext_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ func TestStoreService_List(t *testing.T) {
filterFunc := func(_ context.Context, s credential.Store) (bool, error) {
return true, nil
}
_, err = credential.ListStoresPage(ctx, []byte("some hash"), 1, filterFunc, nil, repo, []string{prj.PublicId})
_, err := credential.ListStoresPage(ctx, []byte("some hash"), 1, filterFunc, nil, repo, []string{prj.PublicId})
require.ErrorContains(t, err, "missing token")
})
t.Run("wrong token type", func(t *testing.T) {
Expand Down Expand Up @@ -292,7 +292,7 @@ func TestStoreService_List(t *testing.T) {
filterFunc := func(_ context.Context, s credential.Store) (bool, error) {
return true, nil
}
_, err = credential.ListStoresRefresh(ctx, []byte("some hash"), 1, filterFunc, nil, repo, []string{prj.PublicId})
_, err := credential.ListStoresRefresh(ctx, []byte("some hash"), 1, filterFunc, nil, repo, []string{prj.PublicId})
require.ErrorContains(t, err, "missing token")
})
t.Run("missing repo", func(t *testing.T) {
Expand Down

0 comments on commit 3be0040

Please sign in to comment.