Skip to content

Commit cc0152b

Browse files
committed
fix handling of option
1 parent d5ff298 commit cc0152b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

test/asynchronous/unified_format.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,11 +330,11 @@ async def _create_entity(self, entity_spec, uri=None):
330330
client = await self.test.async_rs_or_single_client(**kwargs)
331331
await client.aconnect()
332332
# Wait for pool to be populated.
333-
if "awaitMinPoolSize" in spec:
333+
if "awaitMinPoolSizeMS" in spec:
334334
pool = await async_get_pool(client)
335335
t0 = time.monotonic()
336336
while True:
337-
if (time.monotonic() - t0) > spec["awaitMinPoolSize"] * 1000:
337+
if (time.monotonic() - t0) > spec["awaitMinPoolSizeMS"] * 1000:
338338
raise ValueError("Test timed out during awaitMinPoolSize")
339339
async with pool.lock:
340340
if len(pool.conns) + pool.active_sockets >= pool.opts.min_pool_size:
@@ -1562,7 +1562,7 @@ async def test_case(self):
15621562
if re.search(fail_pattern, description):
15631563
test_method = unittest.expectedFailure(test_method)
15641564
break
1565-
1565+
print(test_name)
15661566
setattr(cls, test_name, test_method)
15671567

15681568

test/unified_format.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,11 +329,11 @@ def _create_entity(self, entity_spec, uri=None):
329329
client = self.test.rs_or_single_client(**kwargs)
330330
client._connect()
331331
# Wait for pool to be populated.
332-
if "awaitMinPoolSize" in spec:
332+
if "awaitMinPoolSizeMS" in spec:
333333
pool = get_pool(client)
334334
t0 = time.monotonic()
335335
while True:
336-
if (time.monotonic() - t0) > spec["awaitMinPoolSize"] * 1000:
336+
if (time.monotonic() - t0) > spec["awaitMinPoolSizeMS"] * 1000:
337337
raise ValueError("Test timed out during awaitMinPoolSize")
338338
with pool.lock:
339339
if len(pool.conns) + pool.active_sockets >= pool.opts.min_pool_size:
@@ -1547,7 +1547,7 @@ def test_case(self):
15471547
if re.search(fail_pattern, description):
15481548
test_method = unittest.expectedFailure(test_method)
15491549
break
1550-
1550+
print(test_name)
15511551
setattr(cls, test_name, test_method)
15521552

15531553

0 commit comments

Comments
 (0)