about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2025-01-01 08:24:19 +0300
committerVika <vika@fireburn.ru>2025-01-01 08:25:04 +0300
commit675141379067858376698d5f75ab163977d33e3a (patch)
tree0f958266a5679ddb954d511c9475520ddff08f04
parent45789a693daff74bda062c86d2cc095eab2e0be4 (diff)
downloadkittybox-675141379067858376698d5f75ab163977d33e3a.tar.zst
distributed-test: wait for Kittybox to start up explicitly
Makes logs more readable, because we aren't confused on concurrency
that the socket listener introduces.

Change-Id: Id471d314a1507b5b48d6fa53ba9ca743977c1c6a
-rw-r--r--nixos-tests/distributed-test.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos-tests/distributed-test.nix b/nixos-tests/distributed-test.nix
index ee0755f..f44fe96 100644
--- a/nixos-tests/distributed-test.nix
+++ b/nixos-tests/distributed-test.nix
@@ -23,6 +23,7 @@ kittybox:
     systemd.services.kittybox = {
       bindsTo = [ "srv.mount" ];
       after = [ "srv.mount" ];
+      wantedBy = lib.mkForce [ "multi-user.target" ];
       environment.PGPASSWORD = "swordfish";
       serviceConfig = {
         DynamicUser = lib.mkForce false;
@@ -99,7 +100,7 @@ in {
     start_all()
 
     for machine in servants:
-        machine.wait_for_open_port(8080)
+        machine.wait_for_unit("kittybox.service")
 
     # Onboarding
     servants[0].copy_from_host("${./onboarding.json}", "/root/onboarding.json")