diff options
author | Robert Guo <robert.guo@10gen.com> | 2015-11-12 13:44:10 -0500 |
---|---|---|
committer | Robert Guo <robert.guo@10gen.com> | 2015-11-12 13:44:10 -0500 |
commit | fc6f23eeb5dd4e4b24d889e98a41a737549f2bab (patch) | |
tree | 7b4ab6acf7b3cb111ad50c3a1cd376584b49fba2 /jstests | |
parent | 35e436af02e2af324e8cfa70ef35ba1a9848ba1f (diff) | |
download | mongo-fc6f23eeb5dd4e4b24d889e98a41a737549f2bab.tar.gz |
Revert "SERVER-21388 validate captrunc argument"
This reverts commit 5d72d90de73df52707c31f6799bc4624752d08a2.
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/noPassthroughWithMongod/capped_truncate.js | 7 |
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})); } |