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

test: some cleanup re: #12890 #12919

Merged
merged 7 commits into from
Jan 23, 2023
Merged

test: some cleanup re: #12890 #12919

merged 7 commits into from
Jan 23, 2023

Conversation

vkarpov15
Copy link
Collaborator

Summary

Applied some suggestions from #12890. Mostly getting rid of unnecessary connectionsToClose - left it in one case where it makes sense. Also refactored out some Model.watch() cases, and fixed a potential bug due to the MongoDB node driver continuing to poll after change stream is closed.

Examples

Copy link
Collaborator

@hasezoey hasezoey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mostly looks good to me, though there are some places that have not been changed yet, or were changed back to not properly close in case of test failure

test/collection.capped.test.js Outdated Show resolved Hide resolved
test/collection.test.js Outdated Show resolved Hide resolved
test/model.test.js Outdated Show resolved Hide resolved
Copy link
Collaborator

@IslandRhythms IslandRhythms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vkarpov15 vkarpov15 merged commit 59e5338 into master Jan 23, 2023
@hasezoey hasezoey deleted the vkarpov15/test-cleanup-12890 branch January 24, 2023 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants