Skip to content

Commit 9f2faa0

Browse files
committed
fix assertion timing
1 parent 2e17f48 commit 9f2faa0

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

tests/vm-tests/mullvad-integration.nix

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,23 @@ pkgs.testers.runNixOSTest {
122122
machine.wait_for_unit("radarr.service", timeout=120)
123123
machine.wait_for_unit("lidarr.service", timeout=120)
124124
125+
# Wait for all config services
126+
machine.wait_for_unit("prowlarr-config.service", timeout=60)
127+
machine.wait_for_unit("sonarr-config.service", timeout=60)
128+
machine.wait_for_unit("radarr-config.service", timeout=60)
129+
machine.wait_for_unit("lidarr-config.service", timeout=60)
130+
125131
# Verify services are actually running and stable (not crash-looping)
126132
print("Verifying services are stable and responding...")
127133
import time
128134
time.sleep(5) # Wait for any crashes to happen
129135
136+
# Wait for all services to start
137+
machine.wait_for_unit("prowlarr.service", timeout=20)
138+
machine.wait_for_unit("sonarr.service", timeout=20)
139+
machine.wait_for_unit("radarr.service", timeout=20)
140+
machine.wait_for_unit("lidarr.service", timeout=20)
141+
130142
# Check that services are still active (not failed)
131143
machine.succeed("systemctl is-active prowlarr.service")
132144
machine.succeed("systemctl is-active sonarr.service")

0 commit comments

Comments
 (0)