Skip to content
Browse files

fix test

  • Loading branch information...
1 parent 26e54bc commit fd9c60804a9a686cf039e14014bcb5884b9eec2c @erh erh committed Nov 2, 2011
Showing with 10 additions and 2 deletions.
  1. +10 −2 jstests/sharding/migrateBig.js
View
12 jstests/sharding/migrateBig.js
@@ -35,8 +35,16 @@ db.printShardingStatus()
assert.throws( function(){ s.adminCommand( { movechunk : "test.foo" , find : { x : 50 } , to : s.getOther( s.getServer( "test" ) ).name } ); } , [] , "move should fail" )
-for ( i=0; i<20; i+= 2 )
- s.adminCommand( { split : "test.foo" , middle : { x : i } } )
+for ( i=0; i<20; i+= 2 ) {
+ try {
+ s.adminCommand( { split : "test.foo" , middle : { x : i } } );
+ }
+ catch ( e ) {
+ // we may have auto split on some of these
+ // which is ok
+ print(e);
+ }
+}
db.printShardingStatus()

0 comments on commit fd9c608

Please sign in to comment.
Something went wrong with that request. Please try again.