summaryrefslogtreecommitdiff
path: root/jstests/core/regex_not_id.js
diff options
context:
space:
mode:
authorMax Hirschhorn <max.hirschhorn@mongodb.com>2018-02-14 17:27:55 -0500
committerMax Hirschhorn <max.hirschhorn@mongodb.com>2018-02-14 17:27:55 -0500
commit5217cd27eabdc090baecf25e9b6d33e5c2eee6ad (patch)
tree3c60f16430c5ffc91c369be9f8e8f5718fa17ab0 /jstests/core/regex_not_id.js
parentf045ad4878ad035b0f66013367a2d7eb466bd95f (diff)
downloadmongo-5217cd27eabdc090baecf25e9b6d33e5c2eee6ad.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. (cherry picked from commit 35b5b72146ca570b5c6fed8aaa7e891edf7d6a78) (cherry picked from commit e828226f4c5ab12835e10a09f104759e8fbf09f3)
Diffstat (limited to 'jstests/core/regex_not_id.js')
-rw-r--r--jstests/core/regex_not_id.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/core/regex_not_id.js b/jstests/core/regex_not_id.js
index 1f15250f240..35b2c858867 100644
--- a/jstests/core/regex_not_id.js
+++ b/jstests/core/regex_not_id.js
@@ -3,10 +3,10 @@
var testColl = db.regex_not_id;
testColl.drop();
-assert.writeOK(testColl.insert({_id: "ABCDEF1"}, {writeConcern: {w: 1}}));
+assert.writeOK(testColl.insert({_id: "ABCDEF1"}));
// Should be an error.
-assert.writeError(testColl.insert({_id: /^A/}, {writeConcern: {w: 1}}));
+assert.writeError(testColl.insert({_id: /^A/}));
// _id doesn't have to be first; still disallowed
-assert.writeError(testColl.insert({xxx: "ABCDEF", _id: /ABCDEF/}, {writeConcern: {w: 1}})); \ No newline at end of file
+assert.writeError(testColl.insert({xxx: "ABCDEF", _id: /ABCDEF/}));