summaryrefslogtreecommitdiff
path: root/jstests/repl/repl1.js
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2009-04-01 19:51:41 -0400
committerAaron <aaron@10gen.com>2009-04-01 19:51:41 -0400
commit3dc9982e6577fceab24163d61107f1624d3805dc (patch)
tree7fd5827d2a3c3caa4ad1952ba4d27f285e75fca8 /jstests/repl/repl1.js
parentaf4bf8e62b703852ce3c7c06b71959881a5369ca (diff)
downloadmongo-3dc9982e6577fceab24163d61107f1624d3805dc.tar.gz
Only sleep extra on sigkill, be sure to stop running mongods at end of each doTest call
Diffstat (limited to 'jstests/repl/repl1.js')
-rw-r--r--jstests/repl/repl1.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/jstests/repl/repl1.js b/jstests/repl/repl1.js
index 455b29baa0d..df1e60c8b02 100644
--- a/jstests/repl/repl1.js
+++ b/jstests/repl/repl1.js
@@ -33,7 +33,6 @@ doTest = function( signal ) {
assert.eq( 1, as.find( { i: 999 } ).count() );
stopMongod( ports[ 1 ], signal );
- sleep( 2000 );
for( i = 1000; i < 1010; ++i )
am.save( { _id: new ObjectId(), i: i } );
@@ -44,7 +43,6 @@ doTest = function( signal ) {
assert.eq( 1, as.find( { i: 1009 } ).count() );
stopMongod( ports[ 0 ], signal );
- sleep( 2000 );
m = startMongoProgram( "mongod", "--port", ports[ 0 ], "--dbpath", "/data/db/" + baseName + "-master", "--master", "--oplogSize", "1" );
am = m.getDB( baseName ).a
@@ -54,7 +52,8 @@ doTest = function( signal ) {
assert.soon( function() { return as.find().count() == 1020; } );
assert.eq( 1, as.find( { i: 1019 } ).count() );
-
+
+ ports.forEach( function( x ) { stopMongod( x ); } );
}
doTest( 15 ); // SIGTERM