Skip to content

Commit b9cd9c2

Browse files
committed
PYTHON-2634 Skip arbiter tests when no server is running (#611)
(cherry picked from commit 6412fed)
1 parent 30edfde commit b9cd9c2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/test_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2036,6 +2036,7 @@ def timeout_task():
20362036

20372037
class TestClientPool(MockClientTest):
20382038

2039+
@client_context.require_connection
20392040
def test_rs_client_does_not_maintain_pool_to_arbiters(self):
20402041
listener = CMAPListener()
20412042
c = MockClient(
@@ -2065,6 +2066,7 @@ def test_rs_client_does_not_maintain_pool_to_arbiters(self):
20652066
arbiter = c._topology.get_server_by_address(('d', 4))
20662067
self.assertFalse(arbiter.pool.sockets)
20672068

2069+
@client_context.require_connection
20682070
def test_direct_client_maintains_pool_to_arbiter(self):
20692071
listener = CMAPListener()
20702072
c = MockClient(

0 commit comments

Comments
 (0)