Skip to content

Commit 8c51053

Browse files
earl-warrenforgejo-backport-action
authored andcommitted
bug: require.Eventually must not test with assert
Otherwise it fails the test instead of retrying if the condition fails at least once. (cherry picked from commit 2541a94)
1 parent 3a4612c commit 8c51053

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration/actions_trigger_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ jobs:
321321
require.Eventually(t, func() bool {
322322
actionRuns = make([]*actions_model.ActionRun, 0)
323323
require.NoError(t, db.GetEngine(db.DefaultContext).Where("repo_id=?", baseRepo.ID).Find(&actionRuns))
324-
return assert.Len(t, actionRuns, count)
324+
return len(actionRuns) == count
325325
}, 30*time.Second, 1*time.Second)
326326

327327
// verify the expected ActionRuns were created

0 commit comments

Comments
 (0)