Fix a bulk operations test for MongoDB 3.2 behavior change
This commit is contained in:
parent
03f01774fa
commit
f88c5ff2bc
@ -1043,7 +1043,7 @@ class TestBulkWriteConcern(BulkTestBase):
|
||||
'op': {'_id': '...', 'a': 1}}]},
|
||||
result)
|
||||
|
||||
self.assertEqual(2, len(result['writeConcernErrors']))
|
||||
self.assertTrue(len(result['writeConcernErrors']) > 1)
|
||||
failed = result['writeErrors'][0]
|
||||
self.assertTrue("duplicate" in failed['errmsg'])
|
||||
finally:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user