Skip to content

Commit 42b6b4e

Browse files
committed
f
1 parent 7a41096 commit 42b6b4e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/integration/repo_webhook_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1536,6 +1536,9 @@ jobs:
15361536
runner.fetchTask(t)
15371537
}
15381538

1539+
// Add this sleep to ensure the func can find the tasks by timestamp.
1540+
time.Sleep(time.Second)
1541+
15391542
err = actions.CancelAbandonedJobs(ctx)
15401543
assert.NoError(t, err)
15411544
assert.Len(t, webhookData.payloads, 2)
@@ -1573,6 +1576,8 @@ jobs:
15731576
})
15741577
}
15751578

1579+
time.Sleep(time.Second)
1580+
15761581
err = actions.CancelAbandonedJobs(ctx)
15771582
assert.NoError(t, err)
15781583
assert.Len(t, webhookData.payloads, 4)

0 commit comments

Comments
 (0)