From 55cf8bc0a6439e9d596761541f45cee5d2cafd2d Mon Sep 17 00:00:00 2001 From: Alexander Tomokhov Date: Thu, 21 Dec 2023 13:19:57 +0400 Subject: [PATCH] wait for NixOS boot 460 seconds at maximum --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 5288fbf..cae9fed 100644 --- a/.drone.yml +++ b/.drone.yml @@ -78,7 +78,7 @@ steps: environment: DOMAIN: from_secret: DOMAIN - TIMEOUT: 100 + TIMEOUT: 160 commands: - sleep 300 - t0="$(date '+%s')"; until nix shell --inputs-from git+https://git.selfprivacy.org/alexoundos/selfprivacy-tests.git nixpkgs#netcat -c nc -zv -w1 "$DOMAIN" 443; do sleep 10; cur_date="$(date '+%s')"; remaining=$((t0 + TIMEOUT - cur_date)); [ "$remaining" -gt 0 ]; echo "$remaining seconds remain before teardown"; done