Skip to content

Commit 519f068

Browse files
committed
Fix a bulk operations test for MongoDB 3.2 behavior change
1 parent 489d517 commit 519f068

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_bulk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1043,7 +1043,7 @@ def test_write_concern_failure_ordered(self):
10431043
'op': {'_id': '...', 'a': 1}}]},
10441044
result)
10451045

1046-
self.assertEqual(2, len(result['writeConcernErrors']))
1046+
self.assertTrue(len(result['writeConcernErrors']) > 1)
10471047
failed = result['writeErrors'][0]
10481048
self.assertTrue("duplicate" in failed['errmsg'])
10491049

0 commit comments

Comments
 (0)