File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -616,7 +616,8 @@ 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
+ if not isinstance (context .exception .error , NetworkTimeout ):
620
+ raise context .exception .error
620
621
self .assertIsInstance (context .exception .error , NetworkTimeout )
621
622
622
623
bulk_write_events = []
Original file line number Diff line number Diff line change @@ -616,7 +616,8 @@ 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
+ if not isinstance (context .exception .error , NetworkTimeout ):
620
+ raise context .exception .error
620
621
self .assertIsInstance (context .exception .error , NetworkTimeout )
621
622
622
623
bulk_write_events = []
You can’t perform that action at this time.
0 commit comments