mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
ci: fix flaky dns-systemd test by waiting a second before running (#4962)
It [appears](https://github.com/firezone/firezone/actions/runs/9052492759/job/24870262108?pr=4961) that occasionally the test runs before DNS sentinel is applied and/or Resources updated.
This commit is contained in:
@@ -16,9 +16,9 @@ debug_exit() {
|
||||
}
|
||||
|
||||
# Copy the Linux Client out of its container
|
||||
docker compose exec client cat "$BINARY_NAME" > "$BINARY_NAME" ||
|
||||
docker compose exec client cat "firezone-linux-client" > "$BINARY_NAME" ||
|
||||
exit 1
|
||||
docker compose cp client:/bin/"$BINARY_NAME" "$BINARY_NAME" ||
|
||||
docker compose cp client:/bin/firezone-linux-client "$BINARY_NAME" ||
|
||||
exit 1
|
||||
chmod u+x "$BINARY_NAME"
|
||||
sudo chown root:root "$BINARY_NAME"
|
||||
sudo mv "$BINARY_NAME" "/usr/bin/$BINARY_NAME"
|
||||
@@ -45,6 +45,10 @@ echo "# Start Firezone"
|
||||
resolvectl dns tun-firezone && exit 1
|
||||
stat "/usr/bin/$BINARY_NAME"
|
||||
sudo systemctl start "$SERVICE_NAME" || debug_exit
|
||||
|
||||
# Wait for connlib to set DNS sentinel and update Resources
|
||||
sleep 1
|
||||
|
||||
resolvectl dns tun-firezone
|
||||
resolvectl query "$HTTPBIN" || debug_exit
|
||||
|
||||
|
||||
Reference in New Issue
Block a user