Skip to content

PYTHON-3142 Stop using $where in test_maxConnecting #886

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 1 commit into from
Feb 23, 2022

Conversation

ShaneHarvey
Copy link
Member

@ShaneHarvey ShaneHarvey commented Feb 23, 2022

Removing $where fixes the test failures.

@ShaneHarvey ShaneHarvey requested review from blink1073 and removed request for blink1073 February 23, 2022 02:50
@ShaneHarvey ShaneHarvey marked this pull request as ready for review February 23, 2022 03:19
@juliusgeo
Copy link
Contributor

Is there a way to add a unittest to ensure that this test does not fail within n iterations? I think that would be a good addition to this PR.

@ShaneHarvey
Copy link
Member Author

ShaneHarvey commented Feb 23, 2022

ensure that this test does not fail within n iterations

I don't want to do that because it would make this test slower and more flakey.

We could "ensure the test passes at least once in n iterations" but I also don't want to do that since it would hide legitimate server or driver bugs (it would have masked this server regression).

Copy link
Member

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@juliusgeo juliusgeo left a comment

Choose a reason for hiding this comment

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

LGTM!

@ShaneHarvey ShaneHarvey merged commit 8496ed4 into mongodb:master Feb 23, 2022
ShaneHarvey added a commit that referenced this pull request Feb 23, 2022
blink1073 pushed a commit to blink1073/mongo-python-driver that referenced this pull request Feb 25, 2022
juliusgeo pushed a commit to juliusgeo/mongo-python-driver that referenced this pull request Apr 5, 2022
juliusgeo pushed a commit to juliusgeo/mongo-python-driver that referenced this pull request Apr 7, 2022
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