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

NODE-3008: Adding test for cursor cloning removing session #2723

Merged
merged 1 commit into from Feb 2, 2021

Conversation

durran
Copy link
Member

@durran durran commented Jan 29, 2021

Adds a test to ensure that cloning a cursor removes the session from the new cursor.

@durran durran changed the title test: Adding test for cursor cloning removing session NODE-3008: Adding test for cursor cloning removing session Jan 29, 2021
@durran durran force-pushed the NODE-3008/clone-cursor-removes-session branch from 8417d08 to b0bf9b4 Compare January 29, 2021 16:04
Copy link
Contributor

@emadum emadum left a comment

Choose a reason for hiding this comment

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

Noticed there was a strange failure in CI, I think these suggestions might fix.

Comment on lines +4689 to +4691
expect(clonedCursor.cursorState.session).to.not.exist;
cursor.close();
done();
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
expect(clonedCursor.cursorState.session).to.not.exist;
cursor.close();
done();
expect(clonedCursor.cursorState).to.not.have.property('session');
cursor.close(done);

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah I already fixed it and force pushed. ;)

@durran durran requested a review from emadum January 29, 2021 16:16
Copy link
Contributor

@nbbeeken nbbeeken left a comment

Choose a reason for hiding this comment

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

LGTM

@durran durran merged commit 2fffb52 into 3.6 Feb 2, 2021
@durran durran deleted the NODE-3008/clone-cursor-removes-session branch February 2, 2021 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants