File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1268,7 +1268,7 @@ async def test_06_insert_fails_over_16MiB(self):
1268
1268
with self .assertRaises (BulkWriteError ) as ctx :
1269
1269
await self .coll_encrypted .bulk_write ([InsertOne (doc )])
1270
1270
err = ctx .exception .details ["writeErrors" ][0 ]
1271
- self .assertEqual ( 2 , err ["code" ])
1271
+ self .assertIn ( err ["code" ], [ 2 , 10334 ])
1272
1272
self .assertIn ("object to insert too large" , err ["errmsg" ])
1273
1273
1274
1274
Original file line number Diff line number Diff line change @@ -1264,7 +1264,7 @@ def test_06_insert_fails_over_16MiB(self):
1264
1264
with self .assertRaises (BulkWriteError ) as ctx :
1265
1265
self .coll_encrypted .bulk_write ([InsertOne (doc )])
1266
1266
err = ctx .exception .details ["writeErrors" ][0 ]
1267
- self .assertEqual ( 2 , err ["code" ])
1267
+ self .assertIn ( err ["code" ], [ 2 , 10334 ])
1268
1268
self .assertIn ("object to insert too large" , err ["errmsg" ])
1269
1269
1270
1270
You can’t perform that action at this time.
0 commit comments