From 8bfa7a65f54d07d03b2706e81e527e599e8783c0 Mon Sep 17 00:00:00 2001 From: cschleiden Date: Sun, 27 Oct 2024 14:30:38 -0700 Subject: [PATCH] Improve removal retries --- backend/test/e2e_removal.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/backend/test/e2e_removal.go b/backend/test/e2e_removal.go index 649f9a28..30442df3 100644 --- a/backend/test/e2e_removal.go +++ b/backend/test/e2e_removal.go @@ -27,12 +27,10 @@ var e2eRemovalTests = []backendTest{ _, err := client.GetWorkflowResult[bool](ctx, c, workflowA, time.Second*10) require.NoError(t, err) - now := time.Now() - for i := 0; i < 10; i++ { time.Sleep(300 * time.Millisecond) - err = b.RemoveWorkflowInstances(ctx, backend.RemoveFinishedBefore(now)) + err = b.RemoveWorkflowInstances(ctx, backend.RemoveFinishedBefore(time.Now())) if errors.As(err, &backend.ErrNotSupported{}) { t.Skip() return