cli-test: Error checking in mongo message test.

This commit is contained in:
David Glasser
2013-01-02 13:54:34 -08:00
parent 66b0e7caff
commit 4f8032e577

View File

@@ -128,7 +128,7 @@ echo "... mongo message"
# Use perl to listen on a port, so that Mongo fails to start up. (We used to use
# nc here, but the way you specify listener ports to nc varies between
# platforms. Bleah.)
perl -MIO::Socket::INET -e '$a = IO::Socket::INET->new(LocalPort=>('$PORT' + 2),LocalAddr=>"127.0.0.1",Proto=>"tcp",ReuseAddr=>1,Listen=>5); sleep' &
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=$!
$METEOR -p $PORT > error.txt || true