More sleep is always the answer! (Avoid race between listens.)

This commit is contained in:
David Glasser
2013-01-02 14:11:24 -08:00
parent 4f8032e577
commit 8231783d22

View File

@@ -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