Skip to content

Commit 595c275

Browse files
committed
Remove redundant Bulk API test.
1 parent 595a47f commit 595c275

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

test/test_bulk.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -999,12 +999,8 @@ def test_write_concern_failure_unordered(self):
999999
batch.find({'a': 3}).upsert().update_one({'$set': {'a': 3, 'b': 1}})
10001000
batch.insert({'a': 2})
10011001

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:
1002+
# Using w > 1 with no replication is a hard failure.
1003+
if not self.is_repl:
10081004
self.assertRaises(OperationFailure,
10091005
batch.execute, {'w': 5, 'wtimeout': 1})
10101006
# Replication wtimeout is a 'soft' error.

0 commit comments

Comments
 (0)