-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Conversation
8417d08
to
b0bf9b4
Compare
There was a problem hiding this 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.
expect(clonedCursor.cursorState.session).to.not.exist; | ||
cursor.close(); | ||
done(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
expect(clonedCursor.cursorState.session).to.not.exist; | |
cursor.close(); | |
done(); | |
expect(clonedCursor.cursorState).to.not.have.property('session'); | |
cursor.close(done); |
There was a problem hiding this comment.
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. ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Adds a test to ensure that cloning a cursor removes the session from the new cursor.