ci(NODE-5068, NODE-5078): relax assertion on aggregate events in consecutive resume tests #4449
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
What is changing?
Fixes flakiness (hopefully) in change stream consecutive resume tests.
The tests work as follows:
The last point is flaky - depending on how long each round trip takes for each resume attempt, we've seen anywhere between 3 and 6 aggregates reported. But the point of these tests is to ensure that a single change stream can survive multiple getMore failures (it gets restarted) - the exact number of aggregates doesn't matter, so long as we have more than one. So, I've relaxed the assertion to instead assert that the number of aggregates observed is > 1.
Is there new documentation needed for these changes?
What is the motivation for this change?
Release Highlight
Double check the following
npm run check:lint
scripttype(NODE-xxxx)[!]: description
feat(NODE-1234)!: rewriting everything in coffeescript