-
Notifications
You must be signed in to change notification settings - Fork 1.8k
refactor(ChangeStream): use maybePromise for close, improve tests #2343
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
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
7d38aa6
refactor: use maybePromise for ChangeStream.close
emadum 89a162f
test: fix skipped mid-close tests
emadum 4dd3875
clean up processNewChange
emadum 6a75b37
clean up processNewChange some more
emadum 67e9294
remove comment
emadum 35a552f
test: add waitForStarted to flaky changeStream tests
emadum 279f3c4
cleanup from review
emadum 182a03d
properly fix mid-close tests
emadum fd01b1c
use waitForStarted in flaky tests
emadum 972a6ed
use waitForStarted where possible in existing tests
emadum b0a0fb8
improve cleanup logic for mid-close tests
emadum 395a9bc
use callback so client will close even if changeStream.close errors
emadum 3de4d83
fix typo
emadum 5e1dc83
revert changes and skip mid-close tests
emadum ad22a9f
test fix
emadum 25609ec
refactor: clean up tryNext tests, add withTempDb helper
emadum 891544d
remove .only
emadum 44ff554
fix: dont processNewChange for closed changeStream
emadum e488d63
fix broken mid-close tests, again
emadum e5b7802
fix todo in forbidden stage test
emadum c7c5bc5
cleanup
emadum b97befe
add timeout to waitForStarted
emadum 70bdeba
ensure parity on mid-close events test
emadum 8619634
spend less time waiting for topology
emadum 29dedd2
tryNext tests should use w: majority
emadum 0305e32
remove old code
emadum 4cbd81c
dont skip waitForTopology on unified topology
emadum ffa0b38
lint error
emadum 6e8d0d6
clean up commented code
emadum File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.