summaryrefslogtreecommitdiff
path: root/jstests/sharding/authCommands.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/authCommands.js')
-rw-r--r--jstests/sharding/authCommands.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/jstests/sharding/authCommands.js b/jstests/sharding/authCommands.js
index 9bf86d47cc5..4de15e2f58a 100644
--- a/jstests/sharding/authCommands.js
+++ b/jstests/sharding/authCommands.js
@@ -69,6 +69,7 @@ assert.writeOK(bulk.execute({ w: "majority"}));
assert.eq(expectedDocs, testDB.foo.count());
// Wait for the balancer to start back up
+assert.writeOK(configDB.settings.update({_id: 'balancer'}, {$set: {_waitForDelete: true}}, true));
st.startBalancer();
// Make sure we've done at least some splitting, so the balancer will work
@@ -81,11 +82,6 @@ assert.soon( function() {
return x < 2 && configDB.locks.findOne({ _id : 'test.foo' }).state == 0;
}, "no balance happened", 5 * 60 * 1000 );
-assert.soon( function(){
- print( "Waiting for migration cleanup to occur..." );
- return testDB.foo.find().itcount() == testDB.foo.count();
-});
-
var map = function() { emit (this.i, this.j); };
var reduce = function( key, values ) {
var jCount = 0;