Skip to content

Commit 9a7b0c3

Browse files
author
Earl Warren
committed
Merge pull request '[v9.0/forgejo] bug: require.Eventually must not test with assert' (go-gitea#5870) from bp-v9.0/forgejo-2541a94 into v9.0/forgejo
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/5870 Reviewed-by: Earl Warren <[email protected]>
2 parents 3a4612c + 8c51053 commit 9a7b0c3

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)