diff options
author | Robert Guo <robert.guo@10gen.com> | 2016-02-05 15:43:42 -0500 |
---|---|---|
committer | Robert Guo <robert.guo@10gen.com> | 2016-02-05 15:43:42 -0500 |
commit | c7fb8dfebd386d3e995f1d14343291c5b7898c65 (patch) | |
tree | 825868be0271f58eff4fbfb425f08a2dee8aefcc /jstests | |
parent | c259a7ef3886ae645a58a36a22a9e6e5e45875c3 (diff) | |
download | mongo-c7fb8dfebd386d3e995f1d14343291c5b7898c65.tar.gz |
Revert "SERVER-21388 validate captrunc argument"
This reverts commit f2a67700a3cfd9e401feb4a17931ea3209f10e4b.
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 ce559919b80..ddba2420bba 100644 --- a/jstests/noPassthroughWithMongod/capped_truncate.js +++ b/jstests/noPassthroughWithMongod/capped_truncate.js @@ -11,13 +11,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})); } |