diff options
author | Matt Dannenberg <matt.dannenberg@10gen.com> | 2014-01-30 16:22:56 -0500 |
---|---|---|
committer | Matt Dannenberg <matt.dannenberg@10gen.com> | 2014-01-30 16:45:46 -0500 |
commit | f53c7aef897f814d511c2e2b060ce69aebda6797 (patch) | |
tree | 311d440cf587d9ffac604a51c0f08a97128d71f6 /jstests/replsets/auth_compact.js | |
parent | 7b694b4b38e556af127b67c0b0be7aa08b982822 (diff) | |
download | mongo-f53c7aef897f814d511c2e2b060ce69aebda6797.tar.gz |
fix print outs in replsets/auth_compact.js
Diffstat (limited to 'jstests/replsets/auth_compact.js')
-rw-r--r-- | jstests/replsets/auth_compact.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/replsets/auth_compact.js b/jstests/replsets/auth_compact.js index e0bed4960b8..4a92f377244 100644 --- a/jstests/replsets/auth_compact.js +++ b/jstests/replsets/auth_compact.js @@ -39,7 +39,7 @@ replTest.awaitReplication(1000*60*10); // run compact in parallel print("starting first compact"); -var cmd = "db.getSiblingDB('compact').runCommand({'compact': 'foo', 'paddingFactor': 2});"; +var cmd = "printjson(db.getSiblingDB('compact').runCommand({'compact': 'foo', 'paddingFactor': 2}));"; var compactor = startParallelShell(cmd, compactingSlave.port); // wait for compact to have lock and then see if heartbeats work @@ -73,8 +73,8 @@ assert.soon(function() { // auth and run compact in parallel print("starting second compact"); -cmd = "db.getSiblingDB('admin').auth('admin','hunter2');" - + " db.getSiblingDB('compact').runCommand({'compact': 'foo', 'paddingFactor': 2});"; +cmd = "printjson(db.getSiblingDB('admin').auth('admin','hunter2'));" + + " printjson(db.getSiblingDB('compact').runCommand({'compact': 'foo', 'paddingFactor': 2}));"; var compactor2 = startParallelShell(cmd, compactingSlave.port); // wait for compact to have lock and then check if auth works |