Skip to content

Commit

Permalink
Improve removal retries
Browse files Browse the repository at this point in the history
  • Loading branch information
cschleiden committed Oct 27, 2024
1 parent 8a70d12 commit 8bfa7a6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions backend/test/e2e_removal.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8bfa7a6

Please sign in to comment.