Skip to content

Commit d0e8d14

Browse files
committed
Fix while loop issue
1 parent e5d76bb commit d0e8d14

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.yamato/desktop-standalone-tests.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,15 @@ desktop_standalone_test_{{ project.name }}_{{ platform.name }}_{{ backend }}_{{
8181
{% if platform.name != "win" %} # Issues with win and mac are tracked in MTT-11606
8282
variables:
8383
ECHO_SERVER_PORT: "7788"
84-
COMB_SERVER_PORT: "7789"
84+
COMB_SERVER_PORT: "7799"
8585
# Set this to ensure the DA codec tests will fail if they cannot connect to the echo-server
8686
# The default is to ignore the codec tests if the echo-server fails to connect
8787
ENSURE_CODEC_TESTS: "true"
88+
USE_CMB_SERVICE: "true"
8889
{% endif %}
8990

9091
commands:
91-
# If not windows, run rust echo server (This is needed ONLY for NGOv2.X because relates to Distributed Authority)
92+
# If ubuntu, run rust echo server (This is needed ONLY for NGOv2.X because relates to Distributed Authority)
9293
{% if platform.name != "win" %} # Issues with win and mac are tracked in MTT-11606
9394
- ./Tools/CI/rust.sh
9495
{% endif %}

Tools/CI/rust.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,12 @@ cargo run --example ngo_echo_server -- --port $ECHO_SERVER_PORT &
1616
cargo build
1717

1818
# Run the standalone server on an infinite loop in the background
19-
while :; do cargo run -- --metrics-port 5000 standalone --port $COMB_SERVER_PORT -t 10m done &
19+
while :; do cargo run -- --metrics-port 5000 standalone --port $COMB_SERVER_PORT -t 10m; done &
20+
21+
# Use a function to run the standalone server in a loop, when it exits, it will always restart
22+
runstandalone() {
23+
while :; do
24+
# loop infinitely
25+
cargo run -- --metrics-port 5000 standalone --port $COMB_SERVER_PORT -t 10m
26+
done
27+
}

0 commit comments

Comments
 (0)