Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 8231783d225eb01fa0c45fd2ff704a6b472dcc84 1 parent 4f8032e
@glasser glasser authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  admin/cli-test.sh
View
2  admin/cli-test.sh
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.