summaryrefslogtreecommitdiff
path: root/jstests/multiVersion
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2015-10-26 10:09:34 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2015-10-27 08:24:24 -0400
commit38e5c4febb788441f19044a4d3d2b89e1ab70bf0 (patch)
tree19da129e382ed59e845838f67a4711d558c3f1c3 /jstests/multiVersion
parentba8757e0afd1577a090785f014fc07b55e219d9a (diff)
downloadmongo-38e5c4febb788441f19044a4d3d2b89e1ab70bf0.tar.gz
SERVER-21009 Get rid of some unused/unnecessary methods in ShardingTest
Removes shardGo in lieu of shardColl and removes setBalancer because it duplicates functionality, which is already in sh.
Diffstat (limited to 'jstests/multiVersion')
-rw-r--r--jstests/multiVersion/upgrade_cluster_v5_to_v6.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/jstests/multiVersion/upgrade_cluster_v5_to_v6.js b/jstests/multiVersion/upgrade_cluster_v5_to_v6.js
index 239c58bfbfb..aea6bda3e6b 100644
--- a/jstests/multiVersion/upgrade_cluster_v5_to_v6.js
+++ b/jstests/multiVersion/upgrade_cluster_v5_to_v6.js
@@ -2,8 +2,10 @@
* Tests upgrading a cluster which has 3.0 mongos.
*/
-load( './jstests/multiVersion/libs/multi_rs.js' )
-load( './jstests/multiVersion/libs/multi_cluster.js' )
+load('./jstests/multiVersion/libs/multi_rs.js');
+load('./jstests/multiVersion/libs/multi_cluster.js');
+
+(function() {
/**
* @param isRSCluster {bool} use replica set shards.
@@ -29,9 +31,6 @@ var options = {
var st = new ShardingTest({ shards : 2, mongos : 2, other : options });
-// Just stop balancer, to simulate race conds
-st.setBalancer(false);
-
var shards = st.s0.getDB("config").shards.find().toArray();
var configConnStr = st._configDB;
@@ -124,3 +123,5 @@ st.stop();
runTest(false);
runTest(true);
+
+})();