diff options
| author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2016-10-14 15:14:40 -0400 |
|---|---|---|
| committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2016-10-17 15:56:22 -0400 |
| commit | 347da1ac7c27043421972ae4a2faddfbf9f0db38 (patch) | |
| tree | 6c51da086edce409b1ed5af8565445eb470a2f38 /jstests/noPassthroughWithMongod | |
| parent | bb7179c0aa703ee2df76acabdd425bcf1371d780 (diff) | |
| download | mongo-347da1ac7c27043421972ae4a2faddfbf9f0db38.tar.gz | |
SERVER-26645 Get rid of _shardNames variable in ShardingTest
Diffstat (limited to 'jstests/noPassthroughWithMongod')
| -rw-r--r-- | jstests/noPassthroughWithMongod/no_balance_collection.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/noPassthroughWithMongod/no_balance_collection.js b/jstests/noPassthroughWithMongod/no_balance_collection.js index f6627181b8d..6f238d7b421 100644 --- a/jstests/noPassthroughWithMongod/no_balance_collection.js +++ b/jstests/noPassthroughWithMongod/no_balance_collection.js @@ -6,8 +6,8 @@ var st = new ShardingTest({shards: 2, mongos: 1}); assert.throws(sh.disableBalancing, [], "sh.disableBalancing requires a collection"); assert.throws(sh.enableBalancing, [], "sh.enableBalancing requires a collection"); -var shardAName = st._shardNames[0]; -var shardBName = st._shardNames[1]; +var shardAName = st.shard0.shardName; +var shardBName = st.shard1.shardName; var collA = st.s.getCollection(jsTest.name() + ".collA"); var collB = st.s.getCollection(jsTest.name() + ".collB"); |
