Only sleep extra on sigkill, be sure to stop running mongods at end of each doTest call

This commit is contained in:
Aaron
2009-04-01 19:51:41 -04:00
parent af4bf8e62b
commit 3dc9982e65
11 changed files with 28 additions and 23 deletions

View File

@@ -486,7 +486,8 @@ void killDb( int port, int signal ) {
close( dbs[ port ].second );
dbs.erase( port );
sleepms( 2000 ); // allow operating system to reclaim resources
if ( signal == SIGKILL || i == 5 )
sleepms( 4000 ); // allow operating system to reclaim resources
}
v8::Handle< v8::Value > StopMongoProgram( const v8::Arguments &a ) {