mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-22 06:14:02 -07:00
Tweak delay in validation test
This commit is contained in:
parent
fbc9ab9218
commit
e1ef95958a
1 changed files with 3 additions and 2 deletions
5
.github/workflows/validate-1m-linux.sh
vendored
5
.github/workflows/validate-1m-linux.sh
vendored
|
@ -17,6 +17,7 @@ mkdir $TEST_DIR_PREFIX
|
||||||
# Multi-node connectivity and performance test #
|
# Multi-node connectivity and performance test #
|
||||||
################################################################################
|
################################################################################
|
||||||
main() {
|
main() {
|
||||||
|
echo -e "\nRunning test for $RUN_LENGTH seconds"
|
||||||
NS1="ip netns exec ns1"
|
NS1="ip netns exec ns1"
|
||||||
NS2="ip netns exec ns2"
|
NS2="ip netns exec ns2"
|
||||||
|
|
||||||
|
@ -24,7 +25,7 @@ main() {
|
||||||
# Specify custom port on one node to ensure that feature works
|
# Specify custom port on one node to ensure that feature works
|
||||||
ZT2="$NS2 ./zerotier-cli -p9997 -D$(pwd)/node2"
|
ZT2="$NS2 ./zerotier-cli -p9997 -D$(pwd)/node2"
|
||||||
|
|
||||||
echo -e "Setting up network namespaces..."
|
echo -e "\nSetting up network namespaces..."
|
||||||
echo "Setting up ns1"
|
echo "Setting up ns1"
|
||||||
|
|
||||||
ip netns add ns1
|
ip netns add ns1
|
||||||
|
@ -123,7 +124,7 @@ main() {
|
||||||
|
|
||||||
for ((s = 0; s <= MAX_WAIT_SECS; s++)); do
|
for ((s = 0; s <= MAX_WAIT_SECS; s++)); do
|
||||||
node1_online="$($ZT1 -j info | jq '.online' 2>/dev/null)"
|
node1_online="$($ZT1 -j info | jq '.online' 2>/dev/null)"
|
||||||
sleep 1
|
sleep 2
|
||||||
node2_online="$($ZT2 -j info | jq '.online' 2>/dev/null)"
|
node2_online="$($ZT2 -j info | jq '.online' 2>/dev/null)"
|
||||||
echo "Checking for online status: try #$s, node1:$node1_online, node2:$node2_online"
|
echo "Checking for online status: try #$s, node1:$node1_online, node2:$node2_online"
|
||||||
if [[ "$node1_online" == "true" ]]; then
|
if [[ "$node1_online" == "true" ]]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue