Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(NODE-6418): change stream resumes infinitely after failed aggregates #4267

Merged
merged 5 commits into from
Oct 9, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix test
  • Loading branch information
W-A-James committed Oct 9, 2024
commit 1efa29888793bd25719707dbf5b412c4638767ab
1 change: 1 addition & 0 deletions test/integration/change-streams/change_stream.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2661,6 +2661,7 @@ describe('ChangeStream resumability', function () {
for await (const change of changeStream) {
expect.fail('Change stream produced events on an unresumable error');
}
expect.fail('Change stream did not iterate and did not throw an error');
} catch (error) {
expect(error).to.be.instanceOf(MongoServerError);
expect(aggregateEvents).to.have.lengthOf(2);
Expand Down