diff options
author | Randolph Tan <randolph@10gen.com> | 2013-08-30 15:53:10 -0400 |
---|---|---|
committer | Dan Pasette <dan@mongodb.com> | 2013-10-03 14:44:06 -0400 |
commit | aab2a11c76e18925eb8956d13fdefc57ca4d4159 (patch) | |
tree | f888ee40d07ed3e352683827f1f23e7607d1e373 | |
parent | 22252fdaa6ec8744bb191c3d09d84e5e6e3f4058 (diff) | |
download | mongo-aab2a11c76e18925eb8956d13fdefc57ca4d4159.tar.gz |
SERVER-10655 aggregation_auth : mongos_slaveok.js failing
Improve test.
-rw-r--r-- | jstests/aggregation/mongos_slaveok.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/jstests/aggregation/mongos_slaveok.js b/jstests/aggregation/mongos_slaveok.js index 057aacd9efa..e5d0f6692ae 100644 --- a/jstests/aggregation/mongos_slaveok.js +++ b/jstests/aggregation/mongos_slaveok.js @@ -8,9 +8,6 @@ var NODES = 2; var doTest = function(st, doSharded) { var testDB = st.s.getDB('test'); -testDB.adminCommand({ enableSharding: 'test' }); -testDB.adminCommand({ shardCollection: 'test.user', key: { x: 1 }}); - if (doSharded) { testDB.adminCommand({ enableSharding: 'test' }); testDB.adminCommand({ shardCollection: 'test.user', key: { x: 1 }}); @@ -24,7 +21,7 @@ var secNode = st.rs0.getSecondary(); secNode.getDB('test').setProfilingLevel(2); var res = testDB.runCommand({ aggregate: 'user', pipeline: [{ $project: { x: 1 }}]}); -assert(res.ok); +assert(res.ok, 'aggregate command failed: ' + tojson(res)); var profileQuery = { op: 'command', ns: 'test.$cmd', 'command.aggregate': 'user' }; var profileDoc = secNode.getDB('test').system.profile.findOne(profileQuery); |