diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-08-17 12:27:53 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-08-17 12:28:19 -0400 |
commit | c5f5f9a4f3b515dfd5272d373093fd4fd58c95d9 (patch) | |
tree | 5568dbd7199b1ce64ace1cec26b590c1431e872d /jstests/slowNightly/sharding_rs1.js | |
parent | 19b587d9254dd79dbaaddffabe82771fb3cd108b (diff) | |
download | mongo-r1.6.1.tar.gz |
stabilize testr1.6.1
Diffstat (limited to 'jstests/slowNightly/sharding_rs1.js')
-rw-r--r-- | jstests/slowNightly/sharding_rs1.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/jstests/slowNightly/sharding_rs1.js b/jstests/slowNightly/sharding_rs1.js index 146895342bc..b7d90ba03db 100644 --- a/jstests/slowNightly/sharding_rs1.js +++ b/jstests/slowNightly/sharding_rs1.js @@ -48,6 +48,7 @@ assert.soon( function(){ return d < 5; } , "balance didn't happen" , 1000 * 60 * 3 , 5000 ); +s.config.settings.update( { _id: "balancer" }, { $set : { stopped: true } } , true ); for ( i=0; i<s._rs.length; i++ ){ r = s._rs[i]; @@ -58,6 +59,7 @@ for ( i=0; i<s._rs.length; i++ ){ assert.eq( x.master.md5 , x.slaves[j].md5 , "hashes same for: " + r.url + " slave: " + j ); } + assert.eq( num , db.foo.find().count() , "C1" ) assert.eq( num , db.foo.find().itcount() , "C2" ) assert.eq( num , db.foo.find().sort( { _id : 1 } ).itcount() , "C3" ) |