PYTHON-1471 - Reenable arbiter tests on 4.0 and latest
This commit is contained in:
parent
3c36692f40
commit
8cc2f72e20
@ -523,9 +523,6 @@ class TestClient(IntegrationTest):
|
||||
self.assertEqual(eval(the_repr), client)
|
||||
|
||||
def test_getters(self):
|
||||
if (client_context.version >= (3, 7, 2)
|
||||
and client_context.auth_enabled and client_context.is_rs):
|
||||
raise SkipTest("Disabled due to SERVER-32845")
|
||||
wait_until(lambda: client_context.nodes == self.client.nodes,
|
||||
"find all nodes")
|
||||
|
||||
|
||||
@ -231,9 +231,6 @@ class TestReadPreferences(TestReadPreferencesBase):
|
||||
localthresholdms=-1)
|
||||
|
||||
def test_zero_latency(self):
|
||||
if (client_context.version >= (3, 7, 2)
|
||||
and client_context.auth_enabled and client_context.is_rs):
|
||||
raise SkipTest("Disabled due to SERVER-32845")
|
||||
ping_times = set()
|
||||
# Generate unique ping times.
|
||||
while len(ping_times) < len(self.client.nodes):
|
||||
|
||||
@ -111,18 +111,13 @@ class TestReplicaSetClient(TestReplicaSetClientBase):
|
||||
c.admin.command('ping')
|
||||
|
||||
wait_until(lambda: c.primary == self.primary, "discover primary")
|
||||
wait_until(lambda: c.arbiters == self.arbiters, "discover arbiters")
|
||||
wait_until(lambda: c.secondaries == self.secondaries,
|
||||
"discover secondaries")
|
||||
|
||||
# SERVER-32845
|
||||
if not (client_context.version >= (3, 7, 2)
|
||||
and client_context.auth_enabled and client_context.is_rs):
|
||||
wait_until(lambda: c.arbiters == self.arbiters,
|
||||
"discover arbiters")
|
||||
self.assertEqual(c.arbiters, self.arbiters)
|
||||
|
||||
self.assertEqual(c.primary, self.primary)
|
||||
self.assertEqual(c.secondaries, self.secondaries)
|
||||
self.assertEqual(c.arbiters, self.arbiters)
|
||||
self.assertEqual(c.max_pool_size, 100)
|
||||
|
||||
# Make sure MongoClient's properties are copied to Database and
|
||||
|
||||
Loading…
Reference in New Issue
Block a user