summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorRobert Guo <robert.guo@10gen.com>2015-11-12 13:44:10 -0500
committerRobert Guo <robert.guo@10gen.com>2015-11-12 13:44:10 -0500
commitfc6f23eeb5dd4e4b24d889e98a41a737549f2bab (patch)
tree7b4ab6acf7b3cb111ad50c3a1cd376584b49fba2 /jstests
parent35e436af02e2af324e8cfa70ef35ba1a9848ba1f (diff)
downloadmongo-fc6f23eeb5dd4e4b24d889e98a41a737549f2bab.tar.gz
Revert "SERVER-21388 validate captrunc argument"
This reverts commit 5d72d90de73df52707c31f6799bc4624752d08a2.
Diffstat (limited to 'jstests')
-rw-r--r--jstests/noPassthroughWithMongod/capped_truncate.js7
1 files changed, 0 insertions, 7 deletions
diff --git a/jstests/noPassthroughWithMongod/capped_truncate.js b/jstests/noPassthroughWithMongod/capped_truncate.js
index a81560cc752..b667d98f548 100644
--- a/jstests/noPassthroughWithMongod/capped_truncate.js
+++ b/jstests/noPassthroughWithMongod/capped_truncate.js
@@ -14,13 +14,6 @@
autoIndexId: true }));
var t = db.capped_truncate;
- // It is an error to remove a non-positive number of documents.
- assert.commandFailed(db.runCommand({ captrunc: "capped_truncate", n: -1 }),
- "captrunc didn't return an error when attempting to remove a negative " +
- "number of documents");
- assert.commandFailed(db.runCommand({ captrunc: "capped_truncate", n: 0 }),
- "captrunc didn't return an error when attempting to remove 0 documents");
-
for (var j = 1; j <= 10; j++) {
assert.writeOK(t.insert({x:j}));
}