Loading src/service/.gitlab-ci.yml +4 −4 Original line number Diff line number Diff line Loading @@ -154,7 +154,7 @@ unit_test service: # Mock QKD Nodes Deployment - echo "Starting stage: deploy_mock_nodes" - | - > for port in 11111 22222 33333; do if lsof -i:$port >/dev/null 2>&1; then echo "Freeing up port $port..." Loading @@ -162,7 +162,7 @@ unit_test service: fi done - MOCK_NODES_DIR="$PWD/src/tests/tools/mock_qkd_nodes" - | - > if [ -d "$MOCK_NODES_DIR" ]; then cd "$MOCK_NODES_DIR" || exit ./start.sh & Loading @@ -174,7 +174,7 @@ unit_test service: - echo "Waiting for mock nodes to be up..." - RETRY_COUNT=0 - MAX_RETRIES=15 - | - > while [ $RETRY_COUNT -lt $MAX_RETRIES ]; do if curl -s http://127.0.0.1:11111 > /dev/null && \ curl -s http://127.0.0.1:22222 > /dev/null && \ Loading @@ -187,7 +187,7 @@ unit_test service: sleep 5 fi done - | - > if [ $RETRY_COUNT -ge $MAX_RETRIES ]; then echo "Error: Mock nodes failed to start after multiple attempts." exit 1 Loading Loading
src/service/.gitlab-ci.yml +4 −4 Original line number Diff line number Diff line Loading @@ -154,7 +154,7 @@ unit_test service: # Mock QKD Nodes Deployment - echo "Starting stage: deploy_mock_nodes" - | - > for port in 11111 22222 33333; do if lsof -i:$port >/dev/null 2>&1; then echo "Freeing up port $port..." Loading @@ -162,7 +162,7 @@ unit_test service: fi done - MOCK_NODES_DIR="$PWD/src/tests/tools/mock_qkd_nodes" - | - > if [ -d "$MOCK_NODES_DIR" ]; then cd "$MOCK_NODES_DIR" || exit ./start.sh & Loading @@ -174,7 +174,7 @@ unit_test service: - echo "Waiting for mock nodes to be up..." - RETRY_COUNT=0 - MAX_RETRIES=15 - | - > while [ $RETRY_COUNT -lt $MAX_RETRIES ]; do if curl -s http://127.0.0.1:11111 > /dev/null && \ curl -s http://127.0.0.1:22222 > /dev/null && \ Loading @@ -187,7 +187,7 @@ unit_test service: sleep 5 fi done - | - > if [ $RETRY_COUNT -ge $MAX_RETRIES ]; then echo "Error: Mock nodes failed to start after multiple attempts." exit 1 Loading