There was an error while loading. Please reload this page.
1 parent 595a47f commit 595c275Copy full SHA for 595c275
test/test_bulk.py
@@ -999,12 +999,8 @@ def test_write_concern_failure_unordered(self):
999
batch.find({'a': 3}).upsert().update_one({'$set': {'a': 3, 'b': 1}})
1000
batch.insert({'a': 2})
1001
1002
- client = self.coll.database.connection
1003
- # Using j=True without journaling is a hard failure.
1004
- if server_started_with_nojournal(client):
1005
- self.assertRaises(OperationFailure, batch.execute, {'j': True})
1006
- # So is using w > 1 with no replication.
1007
- elif not self.is_repl:
+ # Using w > 1 with no replication is a hard failure.
+ if not self.is_repl:
1008
self.assertRaises(OperationFailure,
1009
batch.execute, {'w': 5, 'wtimeout': 1})
1010
# Replication wtimeout is a 'soft' error.
0 commit comments