Skip to content

Commit

Permalink
Remove redundant Bulk API test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajdavis committed Apr 2, 2014
1 parent 595a47f commit 595c275
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions test/test_bulk.py
Expand Up @@ -999,12 +999,8 @@ def test_write_concern_failure_unordered(self):
batch.find({'a': 3}).upsert().update_one({'$set': {'a': 3, 'b': 1}})
batch.insert({'a': 2})

client = self.coll.database.connection
# Using j=True without journaling is a hard failure.
if server_started_with_nojournal(client):
self.assertRaises(OperationFailure, batch.execute, {'j': True})
# So is using w > 1 with no replication.
elif not self.is_repl:
# Using w > 1 with no replication is a hard failure.
if not self.is_repl:
self.assertRaises(OperationFailure,
batch.execute, {'w': 5, 'wtimeout': 1})
# Replication wtimeout is a 'soft' error.
Expand Down

0 comments on commit 595c275

Please sign in to comment.