diff options
author | Adam Midvidy <amidvidy@gmail.com> | 2015-04-06 18:49:59 -0400 |
---|---|---|
committer | Adam Midvidy <amidvidy@gmail.com> | 2015-04-06 18:49:59 -0400 |
commit | d6cd29d1fc0594657fcb2b69ce8334df85f9ba54 (patch) | |
tree | 2c3b8bc2d3726dbde6e1abdb97d3bcb53808cd90 /jstests/sharding/auth.js | |
parent | 7ea3fc90c6c1f175da1e76ff79b1e6ae09377141 (diff) | |
download | mongo-d6cd29d1fc0594657fcb2b69ce8334df85f9ba54.tar.gz |
SERVER-7775 add killOp command
Diffstat (limited to 'jstests/sharding/auth.js')
-rw-r--r-- | jstests/sharding/auth.js | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/jstests/sharding/auth.js b/jstests/sharding/auth.js index 41783fcce1a..3de61fafa0d 100644 --- a/jstests/sharding/auth.js +++ b/jstests/sharding/auth.js @@ -294,11 +294,8 @@ function runTest(s) { assert.throws(function() { printjson(readOnlyDB.currentOp()); }); - assert.throws(function() { - printjson(readOnlyDB.killOp(123)); - }); + assert.commandFailed(readOnlyDB.killOp(123)); // fsyncUnlock doesn't work in mongos anyway, so no need check authorization for it - /* broken because of SERVER-4156 print( " testing write command (should fail)" ); @@ -316,9 +313,7 @@ function runTest(s) { assert.throws(function() { printjson(readOnlyDB.currentOp()); }); - assert.throws(function() { - printjson(readOnlyDB.killOp(123)); - }); + assert.commandFailed(readOnlyDB.killOp(123)); // fsyncUnlock doesn't work in mongos anyway, so no need check authorization for it } |