File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -523,7 +523,7 @@ async def test_returns_error_if_auto_encryption_configured(self):
523
523
524
524
525
525
# https://github.com/mongodb/specifications/blob/master/source/client-side-operations-timeout/tests/README.md#11-multi-batch-bulkwrites
526
- class TestClientBulkWriteTimeout (AsyncIntegrationTest ):
526
+ class TestClientBulkWriteCSOT (AsyncIntegrationTest ):
527
527
async def asyncSetUp (self ):
528
528
self .max_write_batch_size = await async_client_context .max_write_batch_size
529
529
self .max_bson_object_size = await async_client_context .max_bson_size
@@ -567,6 +567,7 @@ async def test_timeout_in_multi_batch_bulk_write(self):
567
567
w = "majority" ,
568
568
)
569
569
self .addAsyncCleanup (client .aclose )
570
+ await client .admin .command ("ping" ) # Init the client first.
570
571
with self .assertRaises (ClientBulkWriteException ) as context :
571
572
await client .bulk_write (models = models )
572
573
self .assertIsInstance (context .exception .error , NetworkTimeout )
Original file line number Diff line number Diff line change @@ -523,7 +523,7 @@ def test_returns_error_if_auto_encryption_configured(self):
523
523
524
524
525
525
# https://github.com/mongodb/specifications/blob/master/source/client-side-operations-timeout/tests/README.md#11-multi-batch-bulkwrites
526
- class TestClientBulkWriteTimeout (IntegrationTest ):
526
+ class TestClientBulkWriteCSOT (IntegrationTest ):
527
527
def setUp (self ):
528
528
self .max_write_batch_size = client_context .max_write_batch_size
529
529
self .max_bson_object_size = client_context .max_bson_size
@@ -567,6 +567,7 @@ def test_timeout_in_multi_batch_bulk_write(self):
567
567
w = "majority" ,
568
568
)
569
569
self .addCleanup (client .close )
570
+ client .admin .command ("ping" ) # Init the client first.
570
571
with self .assertRaises (ClientBulkWriteException ) as context :
571
572
client .bulk_write (models = models )
572
573
self .assertIsInstance (context .exception .error , NetworkTimeout )
You can’t perform that action at this time.
0 commit comments