File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -616,6 +616,7 @@ async def test_timeout_in_multi_batch_bulk_write(self):
616
616
await client .admin .command ("ping" ) # Init the client first.
617
617
with self .assertRaises (ClientBulkWriteException ) as context :
618
618
await client .bulk_write (models = models )
619
+ raise context .exception .error
619
620
self .assertIsInstance (context .exception .error , NetworkTimeout )
620
621
621
622
bulk_write_events = []
Original file line number Diff line number Diff line change @@ -616,6 +616,7 @@ def test_timeout_in_multi_batch_bulk_write(self):
616
616
client .admin .command ("ping" ) # Init the client first.
617
617
with self .assertRaises (ClientBulkWriteException ) as context :
618
618
client .bulk_write (models = models )
619
+ raise context .exception .error
619
620
self .assertIsInstance (context .exception .error , NetworkTimeout )
620
621
621
622
bulk_write_events = []
You can’t perform that action at this time.
0 commit comments