summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2017-09-05 16:20:28 -0400
committerBenety Goh <benety@mongodb.com>2017-09-05 16:20:28 -0400
commitdbaf6d6c8e5094c78e9e633dc008c28bf2449293 (patch)
tree802a076319e9b913441fed77bfe5c5bea04302e4
parent5a241f9d630d6fc7f4c5ae900a834f6ee39f6ebf (diff)
downloadmongo-dbaf6d6c8e5094c78e9e633dc008c28bf2449293.tar.gz
Revert "SERVER-30830 fix apply_ops_atomicity.js test case per new applyOps behavior"
This reverts commit 5a241f9d630d6fc7f4c5ae900a834f6ee39f6ebf.
-rw-r--r--jstests/core/apply_ops_atomicity.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/jstests/core/apply_ops_atomicity.js b/jstests/core/apply_ops_atomicity.js
index e704815a889..911ce32a311 100644
--- a/jstests/core/apply_ops_atomicity.js
+++ b/jstests/core/apply_ops_atomicity.js
@@ -29,12 +29,10 @@
var newDBName = "apply_ops_atomicity";
var newDB = db.getSiblingDB(newDBName);
assert.commandWorked(newDB.dropDatabase());
- // Updates on a non-existent database no longer implicitly create collections and will fail with
- // a NamespaceNotFound error.
- assert.commandFailedWithCode(newDB.runCommand({
- applyOps: [{op: "u", ns: newDBName + ".foo", o: {_id: 5, x: 17}, o2: {_id: 5, x: 16}}]
- }),
- ErrorCodes.NamespaceNotFound);
+ // Do an update on a non-existent database, since only 'u' ops can implicitly create
+ // collections.
+ assert.commandWorked(newDB.runCommand(
+ {applyOps: [{op: "u", ns: newDBName + ".foo", o: {_id: 5, x: 17}, o2: {_id: 5, x: 16}}]}));
var sawTooManyLocksError = false;