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 @@ -1276,7 +1276,7 @@ async def test_06_insert_fails_over_16MiB(self):
1276
1276
with self .assertRaises (BulkWriteError ) as ctx :
1277
1277
await self .coll_encrypted .bulk_write ([InsertOne (doc )])
1278
1278
err = ctx .exception .details ["writeErrors" ][0 ]
1279
- self .assertEqual ( 2 , err ["code" ])
1279
+ self .assertIn ( err ["code" ], [ 2 , 10334 ])
1280
1280
self .assertIn ("object to insert too large" , err ["errmsg" ])
1281
1281
1282
1282
Original file line number Diff line number Diff line change @@ -1272,7 +1272,7 @@ def test_06_insert_fails_over_16MiB(self):
1272
1272
with self .assertRaises (BulkWriteError ) as ctx :
1273
1273
self .coll_encrypted .bulk_write ([InsertOne (doc )])
1274
1274
err = ctx .exception .details ["writeErrors" ][0 ]
1275
- self .assertEqual ( 2 , err ["code" ])
1275
+ self .assertIn ( err ["code" ], [ 2 , 10334 ])
1276
1276
self .assertIn ("object to insert too large" , err ["errmsg" ])
1277
1277
1278
1278
You can’t perform that action at this time.
0 commit comments