Skip to content

Commit 1c70aa4

Browse files
authored
Merge pull request #3534 from kcp-ci-bot/cherry-pick-3533-to-release-0.28
[release-0.28] fix flakiness in TestAPIExportBindingAuthorizer
2 parents c9513d2 + 2cd83d6 commit 1c70aa4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/e2e/virtual/apiexport/authorizer_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,8 @@ func TestAPIExportBindingAuthorizer(t *testing.T) {
631631

632632
// Bind to second tenant workspace so url pops up. So we use this to check tenant1 access.
633633
for _, shard := range shards.Items {
634-
tenant2Path, _ := kcptesting.NewWorkspaceFixture(t, server, orgPath, kcptesting.WithName(shard.Name+"-tenant-2"))
634+
tenant2Path, _ := kcptesting.NewWorkspaceFixture(t, server, orgPath, kcptesting.WithName(shard.Name+"-tenant-2"), kcptesting.WithShard(shard.Name))
635+
635636
kcptestinghelpers.Eventually(t, func() (bool, string) {
636637
_, err = kcpClient.Cluster(tenant2Path).ApisV1alpha2().APIBindings().Create(ctx, apiBinding, metav1.CreateOptions{})
637638
return err == nil, fmt.Sprintf("Error creating APIBinding: %v", err)

0 commit comments

Comments
 (0)