mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 09:06:21 +01:00
sleep to allow os to recover resources of killed process
This commit is contained in:
parent
cec6d1af97
commit
2821a57dcb
@ -18,6 +18,9 @@ doTest = function( signal ) {
|
||||
} );
|
||||
|
||||
stopMongod( 27019, signal );
|
||||
|
||||
sleep( 4000 );
|
||||
|
||||
s = startMongoProgram( "mongod", "--port", "27019", "--dbpath", "/data/db/" + baseName + "-slave", "--slave", "--source", "127.0.0.1:27018" );
|
||||
|
||||
assert.soon( function() {
|
||||
|
@ -484,6 +484,7 @@ void killDb( int port, int signal ) {
|
||||
|
||||
close( dbs[ port ].second );
|
||||
dbs.erase( port );
|
||||
sleepms( 1000 );
|
||||
}
|
||||
|
||||
v8::Handle< v8::Value > StopMongoProgram( const v8::Arguments &a ) {
|
||||
|
Loading…
Reference in New Issue
Block a user