summaryrefslogtreecommitdiff
path: root/jstests/sharding/balancer_shell_commands.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/balancer_shell_commands.js')
-rw-r--r--jstests/sharding/balancer_shell_commands.js24
1 files changed, 12 insertions, 12 deletions
diff --git a/jstests/sharding/balancer_shell_commands.js b/jstests/sharding/balancer_shell_commands.js
index 48c5c7c489a..f6d8faf1e99 100644
--- a/jstests/sharding/balancer_shell_commands.js
+++ b/jstests/sharding/balancer_shell_commands.js
@@ -7,20 +7,20 @@
var db;
(function() {
- "use strict";
- var shardingTest = new ShardingTest(
- {name: "shell_commands", shards: 1, mongos: 1, other: {enableBalancer: true}});
- db = shardingTest.getDB("test");
+"use strict";
+var shardingTest =
+ new ShardingTest({name: "shell_commands", shards: 1, mongos: 1, other: {enableBalancer: true}});
+db = shardingTest.getDB("test");
- assert(sh.getBalancerState(), "Balancer should have been enabled during cluster setup");
+assert(sh.getBalancerState(), "Balancer should have been enabled during cluster setup");
- // Test that the balancer can be disabled
- sh.setBalancerState(false);
- assert(!sh.getBalancerState(), "Failed to disable balancer");
+// Test that the balancer can be disabled
+sh.setBalancerState(false);
+assert(!sh.getBalancerState(), "Failed to disable balancer");
- // Test that the balancer can be re-enabled
- sh.setBalancerState(true);
- assert(sh.getBalancerState(), "Failed to re-enable balancer");
+// Test that the balancer can be re-enabled
+sh.setBalancerState(true);
+assert(sh.getBalancerState(), "Failed to re-enable balancer");
- shardingTest.stop();
+shardingTest.stop();
})();