summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@mongodb.com>2016-02-23 18:17:42 -0500
committerSpencer T Brody <spencer@mongodb.com>2016-02-24 13:29:30 -0500
commitfb015882a981d69567946661df87cb7398ae12f1 (patch)
tree23fcba2cf8e9935a964d30a8d6cefab58327d8f1 /jstests
parent13729d1a2e76387456a1837ffd9219ac328a81b7 (diff)
downloadmongo-fb015882a981d69567946661df87cb7398ae12f1.tar.gz
SERVER-22823 Increase stability of authCommands.js
Diffstat (limited to 'jstests')
-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;