Skip to content

PYTHON-2634 Skip arbiter tests when no server is running #611

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 2 commits into from
Apr 27, 2021

Conversation

ShaneHarvey
Copy link
Member

Fixes the "no server" test failures:

 [2021/04/19 22:43:38.653] FAIL [10.026s]: test_direct_client_maintains_pool_to_arbiter (test_client.TestClientPool)
 [2021/04/19 22:43:38.653] ----------------------------------------------------------------------
 [2021/04/19 22:43:38.653] Traceback (most recent call last):
 [2021/04/19 22:43:38.653]   File "/data/mci/c3fd0d8a3cd0109c13fe181f4d100ef4/src/test/test_client.py", line 2082, in test_direct_client_maintains_pool_to_arbiter
 [2021/04/19 22:43:38.653]     listener.wait_for_event(monitoring.ConnectionReadyEvent, 1)
 [2021/04/19 22:43:38.653]   File "/data/mci/c3fd0d8a3cd0109c13fe181f4d100ef4/src/test/utils.py", line 93, in wait_for_event
 [2021/04/19 22:43:38.653]     'find %s %s event(s)' % (count, event))
 [2021/04/19 22:43:38.653]   File "/data/mci/c3fd0d8a3cd0109c13fe181f4d100ef4/src/test/utils.py", line 731, in wait_until
 [2021/04/19 22:43:38.653]     raise AssertionError("Didn't ever %s" % success_description)
 [2021/04/19 22:43:38.653] AssertionError: Didn't ever find 1 <class 'pymongo.monitoring.ConnectionReadyEvent'> event(s)
 [2021/04/19 22:43:38.653] ======================================================================
 [2021/04/19 22:43:38.653] FAIL [10.179s]: test_rs_client_does_not_maintain_pool_to_arbiters (test_client.TestClientPool)
 [2021/04/19 22:43:38.653] ----------------------------------------------------------------------
 [2021/04/19 22:43:38.653] Traceback (most recent call last):
 [2021/04/19 22:43:38.653]   File "/data/mci/c3fd0d8a3cd0109c13fe181f4d100ef4/src/test/test_client.py", line 2055, in test_rs_client_does_not_maintain_pool_to_arbiters
 [2021/04/19 22:43:38.653]     listener.wait_for_event(monitoring.ConnectionReadyEvent, 2)
 [2021/04/19 22:43:38.653]   File "/data/mci/c3fd0d8a3cd0109c13fe181f4d100ef4/src/test/utils.py", line 93, in wait_for_event
 [2021/04/19 22:43:38.653]     'find %s %s event(s)' % (count, event))
 [2021/04/19 22:43:38.653]   File "/data/mci/c3fd0d8a3cd0109c13fe181f4d100ef4/src/test/utils.py", line 731, in wait_until
 [2021/04/19 22:43:38.653]     raise AssertionError("Didn't ever %s" % success_description)
 [2021/04/19 22:43:38.653] AssertionError: Didn't ever find 2 <class 'pymongo.monitoring.ConnectionReadyEvent'> event(s)
 [2021/04/19 22:43:38.653] ----------------------------------------------------------------------

@ShaneHarvey ShaneHarvey merged commit 6412fed into mongodb:master Apr 27, 2021
@ShaneHarvey ShaneHarvey deleted the PYTHON-2634-no-server-fix branch April 27, 2021 22:53
ShaneHarvey added a commit that referenced this pull request Apr 27, 2021
ShaneHarvey added a commit that referenced this pull request Apr 27, 2021
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.

2 participants