summaryrefslogtreecommitdiff
path: root/jstests/sharding/sharding_balance1.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/sharding_balance1.js')
-rw-r--r--jstests/sharding/sharding_balance1.js16
1 files changed, 6 insertions, 10 deletions
diff --git a/jstests/sharding/sharding_balance1.js b/jstests/sharding/sharding_balance1.js
index d2fad545bba..22a8aaa6210 100644
--- a/jstests/sharding/sharding_balance1.js
+++ b/jstests/sharding/sharding_balance1.js
@@ -39,16 +39,12 @@
assert.lt(20, diff1(), "big differential here");
print(diff1());
- assert.soon(
- function() {
- var d = diff1();
- return d < 5;
- // Make sure there's enough time here, since balancing can sleep for 15s or so between
- // balances.
- },
- "balance didn't happen",
- 1000 * 60 * 5,
- 5000);
+ assert.soon(function() {
+ var d = diff1();
+ return d < 5;
+ // Make sure there's enough time here, since balancing can sleep for 15s or so between
+ // balances.
+ }, "balance didn't happen", 1000 * 60 * 5, 5000);
s.stop();
})();