summaryrefslogtreecommitdiff
path: root/jstests/sharding/features2.js
diff options
context:
space:
mode:
authorGreg Studer <greg@10gen.com>2012-10-17 14:52:06 -0400
committerGreg Studer <greg@10gen.com>2012-10-17 16:06:01 -0400
commiteb5bf5b804ee4f20ab5c9e5a77674fe051889f76 (patch)
tree94176d97ba4459acb91726e25d5de3d394374c02 /jstests/sharding/features2.js
parent34107e2d9785dfbc2665a30a724bf68049f87309 (diff)
downloadmongo-eb5bf5b804ee4f20ab5c9e5a77674fe051889f76.tar.gz
SERVER-7376 test fixes for 2.3+ for slow migration cleanup
Diffstat (limited to 'jstests/sharding/features2.js')
-rw-r--r--jstests/sharding/features2.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/jstests/sharding/features2.js b/jstests/sharding/features2.js
index 507dc7ab545..4df8809caf6 100644
--- a/jstests/sharding/features2.js
+++ b/jstests/sharding/features2.js
@@ -28,6 +28,11 @@ assert.eq( 1 , s.onNumShards( "foo" ) , "A1" );
s.shardGo( "foo" , { x : 1 } , { x : 2 } , { x : 3 } );
+assert.soon( function(){
+ print( "Waiting for migration cleanup to occur..." );
+ return db.foo.count() == db.foo.find().itcount();
+})
+
assert.eq( 2 , s.onNumShards( "foo" ) , "A2" );
assert.eq( "1,2,3" , db.foo.distinct( "x" ) , "distinct 4" );