diff options
author | Max Hirschhorn <max.hirschhorn@mongodb.com> | 2018-01-30 19:45:42 -0500 |
---|---|---|
committer | Max Hirschhorn <max.hirschhorn@mongodb.com> | 2018-01-30 19:45:42 -0500 |
commit | 35b5b72146ca570b5c6fed8aaa7e891edf7d6a78 (patch) | |
tree | 982b7782084039d440c75911b51ac6568569faec /jstests/core/collection_info_cache_race.js | |
parent | 784e55320f72ab9b9ec8b4f766d4be0c1b5e4a5b (diff) | |
download | mongo-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.js | 4 |
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})); |