Skip to content

Commit

Permalink
[util/e2e] Rework KueueReadyForTesting.
Browse files Browse the repository at this point in the history
  • Loading branch information
trasc committed Jan 30, 2024
1 parent 25dd4bf commit a0454ba
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/util/e2e.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,11 @@ func CreateVisibilityClient(user string) visibilityv1alpha1.VisibilityV1alpha1In
func KueueReadyForTesting(ctx context.Context, client client.Client) {
// To verify that webhooks are ready, let's create a simple resourceflavor
resourceKueue := utiltesting.MakeResourceFlavor("default").Obj()
gomega.Eventually(func() error {
return client.Create(context.Background(), resourceKueue)
gomega.EventuallyWithOffset(1, func() error {
return client.Create(ctx, resourceKueue)
}, StartUpTimeout, Interval).Should(gomega.Succeed())

gomega.EventuallyWithOffset(1, func() error {
return client.Delete(ctx, resourceKueue)
}, StartUpTimeout, Interval).Should(gomega.Succeed())
ExpectResourceFlavorToBeDeleted(ctx, client, resourceKueue, true)
}

0 comments on commit a0454ba

Please sign in to comment.