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: ensure connection with sharded topology #2579

Merged
merged 1 commit into from
Oct 19, 2020

Conversation

reggi
Copy link
Contributor

@reggi reggi commented Oct 13, 2020

NODE-2827

bringing in test from #2557

@reggi reggi requested review from mbroadst, nbbeeken and emadum October 14, 2020 15:01
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.

LGTM w/ one question about withClient usage

it('Should use sharded topology', {
metadata: { requires: { topology: 'sharded' } },
test: function () {
const client = this.configuration.newClient({});
Copy link
Contributor

Choose a reason for hiding this comment

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

Why was this necessary? If you're not passing custom options into this.configuration.newClient, this should be the same as test: withClient((client, done) => {...})

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated! This is a port, and I believe I needed to pass in useUnifiedTopology in 3.6 and that's why I did it this way, but then possibly removed the option here because of the warning?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Damn, i missed this push locally. I think it's OK to leave in, hope we revamp and check through withClient calls later.

@reggi reggi merged commit 3155bcc into master Oct 19, 2020
@reggi reggi deleted the NODE-2827/master/toplology-sharded branch October 19, 2020 15:09
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