Skip to content

Commit cfc13ca

Browse files
committed
Wait for socket to appear
After the mock service is started, we should wait until the socket it opens becomes available. Signed-off-by: Ionut Mihalcea <[email protected]>
1 parent 3c6728e commit cfc13ca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/ci.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ fi
3333
CURRENT_PATH=$(pwd)
3434
cd parsec-mock-0.1.1
3535
python parsec_mock/parsec_mock.py --parsec-socket $CURRENT_PATH/parsec_mock.sock &
36-
sleep 5
36+
while [[ ! -S $CURRENT_PATH/parsec_mock.sock ]]; do
37+
sleep 5
38+
done
3739
cd ..
3840
export PARSEC_SERVICE_ENDPOINT="unix://$CURRENT_PATH/parsec_mock.sock"
3941

0 commit comments

Comments
 (0)