Skip to content

Commit

Permalink
Merge pull request '[v9.0/forgejo] bug: require.Eventually must not t…
Browse files Browse the repository at this point in the history
…est 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]>
  • Loading branch information
Earl Warren committed Nov 9, 2024
2 parents 3a4612c + 8c51053 commit 9a7b0c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integration/actions_trigger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ jobs:
require.Eventually(t, func() bool {
actionRuns = make([]*actions_model.ActionRun, 0)
require.NoError(t, db.GetEngine(db.DefaultContext).Where("repo_id=?", baseRepo.ID).Find(&actionRuns))
return assert.Len(t, actionRuns, count)
return len(actionRuns) == count
}, 30*time.Second, 1*time.Second)

// verify the expected ActionRuns were created
Expand Down

0 comments on commit 9a7b0c3

Please sign in to comment.