diff options
author | Aaron <aaron@10gen.com> | 2009-12-10 09:08:37 -0800 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2009-12-10 09:08:37 -0800 |
commit | beb2fcafd0a62a2600785679b956a2b04f79da15 (patch) | |
tree | 2aeb058fd9c97dcf71e9209d671ceb9ccebd7545 /jstests | |
parent | 32d56f6d81a98b569103149c9ffea9f25a1ece81 (diff) | |
download | mongo-beb2fcafd0a62a2600785679b956a2b04f79da15.tar.gz |
MINOR prevent quite unlikely potential port ordering race condition
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/repl/repl6.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/jstests/repl/repl6.js b/jstests/repl/repl6.js index ee24df19528..f4fdc9be753 100644 --- a/jstests/repl/repl6.js +++ b/jstests/repl/repl6.js @@ -10,8 +10,10 @@ soonCount = function( m, count ) { doTest = function( signal ) { - ms1 = new ReplTest( "repl6tests-1" ); - ms2 = new ReplTest( "repl6tests-2", ms1.ports[ 0 ] ); + ports = allocatePorts( 3 ); + + ms1 = new ReplTest( "repl6tests-1", [ ports[ 0 ], ports[ 1 ] ] ); + ms2 = new ReplTest( "repl6tests-2", [ ports[ 0 ], ports[ 2 ] ] ); m = ms1.start( true ); s1 = ms1.start( false ); |