Permalink
Browse files

don't repair a massive db for simple test

  • Loading branch information...
1 parent 7b911f2 commit 286612a40cdb6000cda7efd19fe0c97c91bba10c @erh erh committed Jul 14, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 jstests/repair.js
View
@@ -1,6 +1,7 @@
-t = db.jstests_repair;
+mydb = db.getSisterDB( "repair_test1" )
+t = mydb.jstests_repair;
t.drop();
t.save( { i:1 } );
-assert.commandWorked( db.repairDatabase() );
+assert.commandWorked( mydb.repairDatabase() );
v = t.validate();
assert( v.valid , "not valid! " + tojson( v ) );

0 comments on commit 286612a

Please sign in to comment.