Skip to content

[v14] Remove use of require assertions inside Eventually calls#31226

Merged
zmb3 merged 2 commits intobranch/v14from
bot/backport-31112-branch/v14
Aug 31, 2023
Merged

[v14] Remove use of require assertions inside Eventually calls#31226
zmb3 merged 2 commits intobranch/v14from
bot/backport-31112-branch/v14

Conversation

@zmb3
Copy link
Copy Markdown
Collaborator

@zmb3 zmb3 commented Aug 30, 2023

Backport #31112 to branch/v14

zmb3 added 2 commits August 30, 2023 17:15
require.Eventually runs the predicate function in a background
goroutine. It is invalid to use require to make assertions
inside the eventually, because require will fail the test if the
assertion fails, and tests can only be failed from the test's
main goroutine.
@github-actions github-actions Bot added backport database-access Database access related issues and PRs size/sm labels Aug 30, 2023
@zmb3 zmb3 enabled auto-merge (squash) August 30, 2023 17:55
@zmb3 zmb3 disabled auto-merge August 30, 2023 18:46
@zmb3 zmb3 added this pull request to the merge queue Aug 31, 2023
Merged via the queue into branch/v14 with commit 7e6e101 Aug 31, 2023
@zmb3 zmb3 deleted the bot/backport-31112-branch/v14 branch August 31, 2023 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport database-access Database access related issues and PRs size/sm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants