Permalink
Browse files

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

  • Loading branch information...
1 parent 4f8032e commit 8231783d225eb01fa0c45fd2ff704a6b472dcc84 @glasser glasser committed Jan 2, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 admin/cli-test.sh
View
@@ -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

0 comments on commit 8231783

Please sign in to comment.