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:
Jamil
2024-05-13 07:10:04 -07:00
committed by GitHub
parent 5814efc036
commit 469e970056

View File

@@ -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