diff options
Diffstat (limited to 'jstests/sharding/multi_mongos2.js')
-rw-r--r-- | jstests/sharding/multi_mongos2.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/sharding/multi_mongos2.js b/jstests/sharding/multi_mongos2.js index 360bb629471..aef63e6b684 100644 --- a/jstests/sharding/multi_mongos2.js +++ b/jstests/sharding/multi_mongos2.js @@ -5,7 +5,7 @@ var st = new ShardingTest({shards: 2, mongos: 2}); assert.commandWorked(st.s0.adminCommand({enablesharding: "test"})); - st.ensurePrimaryShard('test', 'shard0001'); + st.ensurePrimaryShard('test', st.shard1.shardName); assert.commandWorked(st.s0.adminCommand({shardcollection: "test.foo", key: {num: 1}})); // Test queries |