Skip to content

Commit ce0af68

Browse files
authored
Merge pull request #121 from getlantern/fix-e2e-cgo
Fix e2e: use bash for /dev/tcp port-readiness check
2 parents 078c689 + 9861dae commit ce0af68

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/e2e.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@ jobs:
212212
nohup /root/lantern-box run --config /root/water-server.json > /root/water-server.log 2>&1 &"
213213
214214
# Wait for servers to be ready (WATER needs time to download/compile WASM)
215-
ssh $SSH_OPTS root@"$DROPLET_IP" '
215+
# Note: must use bash explicitly since Ubuntu default shell is dash (no /dev/tcp support)
216+
ssh $SSH_OPTS root@"$DROPLET_IP" bash << 'READYEOF'
216217
for port in 9001 9002 9003; do
217218
echo "Waiting for port $port to be ready..."
218219
for i in $(seq 1 60); do
@@ -228,7 +229,7 @@ jobs:
228229
sleep 1
229230
done
230231
done
231-
'
232+
READYEOF
232233
233234
- name: Test ALGeneva
234235
env:

0 commit comments

Comments
 (0)