summaryrefslogtreecommitdiff
path: root/jstests/core/collection_info_cache_race.js
diff options
context:
space:
mode:
authorMax Hirschhorn <max.hirschhorn@mongodb.com>2018-01-30 19:45:42 -0500
committerMax Hirschhorn <max.hirschhorn@mongodb.com>2018-01-30 19:45:42 -0500
commit35b5b72146ca570b5c6fed8aaa7e891edf7d6a78 (patch)
tree982b7782084039d440c75911b51ac6568569faec /jstests/core/collection_info_cache_race.js
parent784e55320f72ab9b9ec8b4f766d4be0c1b5e4a5b (diff)
downloadmongo-35b5b72146ca570b5c6fed8aaa7e891edf7d6a78.tar.gz
SERVER-32522 Clean up {read,write}Concern and readPreference overrides.
Introduces OverrideHelpers object with convenience methods for inspecting certain aggregation and map-reduce commands, as well as overriding startParallelShell(), Mongo.prototype.runCommand(), and Mongo.prototype.runCommandWithMetadata(). Also removes a number of tests that were incorrectly blacklisted from the read_concern_majority_passthrough.yml and read_concern_linearizable_passthrough.yml test suites.
Diffstat (limited to 'jstests/core/collection_info_cache_race.js')
-rw-r--r--jstests/core/collection_info_cache_race.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/core/collection_info_cache_race.js b/jstests/core/collection_info_cache_race.js
index d57fc3340db..8fcde050e99 100644
--- a/jstests/core/collection_info_cache_race.js
+++ b/jstests/core/collection_info_cache_race.js
@@ -5,9 +5,9 @@ var coll = db.collection_info_cache_race;
coll.drop();
assert.commandWorked(db.createCollection(coll.getName(), {autoIndexId: false}));
// Fails when SERVER-16502 was not fixed, due to invariant
-assert.writeOK(coll.save({_id: false}, {writeConcern: {w: 1}}));
+assert.writeOK(coll.save({_id: false}));
coll.drop();
assert.commandWorked(db.createCollection(coll.getName(), {autoIndexId: false}));
assert.eq(null, coll.findOne());
-assert.writeOK(coll.save({_id: false}, {writeConcern: {w: 1}}));
+assert.writeOK(coll.save({_id: false}));