mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-19 05:26:54 +02:00
Add delay to binding test
This commit is contained in:
parent
332b8b2e38
commit
452e845cf6
1 changed files with 3 additions and 1 deletions
4
.github/workflows/validate-linux.sh
vendored
4
.github/workflows/validate-linux.sh
vendored
|
@ -110,7 +110,7 @@ test() {
|
|||
$NS2 ip addr del 192.168.1.2/24 dev veth3
|
||||
$NS2 sudo ./zerotier-one node2 -U -p$ZT_PORT_NODE_2 >>node_2.log 2>&1 &
|
||||
|
||||
sleep 5; # New HTTP control plane is a bit sluggish, so we delay here
|
||||
sleep 10; # New HTTP control plane is a bit sluggish, so we delay here
|
||||
|
||||
check_bind_to_correct_ports $ZT_PORT_NODE_1
|
||||
check_bind_to_correct_ports $ZT_PORT_NODE_2
|
||||
|
@ -472,6 +472,8 @@ check_exit_on_invalid_identity() {
|
|||
|
||||
check_bind_to_correct_ports() {
|
||||
PORT_NUMBER=$1
|
||||
echo "Checking bound ports:"
|
||||
sudo netstat -anp | grep "$PORT_NUMBER" | grep "zerotier"
|
||||
if [[ $(sudo netstat -anp | grep "$PORT_NUMBER" | grep "zerotier" | grep "tcp") ]];
|
||||
then
|
||||
:
|
||||
|
|
Loading…
Add table
Reference in a new issue