summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2013-02-15 17:40:12 -0500
committerRandolph Tan <randolph@10gen.com>2013-02-15 17:41:23 -0500
commite5756af5f18150608d514176a5fd73b3041d82b5 (patch)
treefd87a63ae13388e07e98cc3012686ec0680dc47e /jstests
parent3d6337ea8958e3a6d97279189f460c9f9decaf9c (diff)
downloadmongo-e5756af5f18150608d514176a5fd73b3041d82b5.tar.gz
increase verbosity for replReads.js
Diffstat (limited to 'jstests')
-rw-r--r--jstests/slowNightly/replReads.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/jstests/slowNightly/replReads.js b/jstests/slowNightly/replReads.js
index f767896cb70..c1685ae7883 100644
--- a/jstests/slowNightly/replReads.js
+++ b/jstests/slowNightly/replReads.js
@@ -2,7 +2,8 @@
function testReadLoadBalancing(numReplicas) {
- s = new ShardingTest( "replReads" , 1 /* numShards */, 0 /* verboseLevel */, 1 /* numMongos */, { rs : true , numReplicas : numReplicas, chunksize : 1 } )
+ var s = new ShardingTest({ shards: { rs0: { nodes: numReplicas }},
+ verbose: 2, other: { chunksize: 1 }});
s.adminCommand({enablesharding : "test"})
s.config.settings.find().forEach(printjson)
@@ -15,7 +16,7 @@ function testReadLoadBalancing(numReplicas) {
secondaries = s._rs[0].test.liveNodes.slaves
function rsStats() {
- return s.getDB( "admin" ).runCommand( "connPoolStats" )["replicaSets"]["replReads-rs0"];
+ return s.getDB("admin").runCommand("connPoolStats")["replicaSets"][s.rs0.name];
}
assert.eq( numReplicas , rsStats().hosts.length );