mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
More sleep is always the answer! (Avoid race between listens.)
This commit is contained in:
@@ -131,6 +131,8 @@ echo "... mongo message"
|
||||
perl -MIO::Socket::INET -e '$a = IO::Socket::INET->new(LocalPort=>('$PORT' + 2),LocalAddr=>"127.0.0.1",Proto=>"tcp",ReuseAddr=>1,Listen=>5) or die; sleep' &
|
||||
PERL_PID=$!
|
||||
|
||||
sleep 1
|
||||
|
||||
$METEOR -p $PORT > error.txt || true
|
||||
|
||||
grep 'port was closed' error.txt > /dev/null
|
||||
|
||||
Reference in New Issue
Block a user