summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorArtturi <Artturin@artturin.com>2023-11-08 01:00:37 +0200
committerGitHub <noreply@github.com>2023-11-08 01:00:37 +0200
commitc1cfba583d14b98b38ff667d670f79e076daed95 (patch)
treeb4fa2d741b6f6a8eb1ae43be891dbd27013152c0 /nixos/tests
parent9dfb962c2a7dee760ef894a755d13777e392ba6d (diff)
parentebec07fd244410736b00990fa3609f6a9c3bfdef (diff)
downloadnixpkgs-c1cfba583d14b98b38ff667d670f79e076daed95.tar
nixpkgs-c1cfba583d14b98b38ff667d670f79e076daed95.tar.gz
nixpkgs-c1cfba583d14b98b38ff667d670f79e076daed95.tar.bz2
nixpkgs-c1cfba583d14b98b38ff667d670f79e076daed95.tar.lz
nixpkgs-c1cfba583d14b98b38ff667d670f79e076daed95.tar.xz
nixpkgs-c1cfba583d14b98b38ff667d670f79e076daed95.tar.zst
nixpkgs-c1cfba583d14b98b38ff667d670f79e076daed95.zip
Merge pull request #260050 from 6t8k/nixos-test-openssh-wait-for-sshd
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/openssh.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/nixos/tests/openssh.nix b/nixos/tests/openssh.nix
index 881eb9d7d91..79949747799 100644
--- a/nixos/tests/openssh.nix
+++ b/nixos/tests/openssh.nix
@@ -103,7 +103,12 @@ in {
   testScript = ''
     start_all()
 
-    server.wait_for_unit("sshd")
+    server.wait_for_unit("sshd", timeout=30)
+    server_localhost_only.wait_for_unit("sshd", timeout=30)
+    server_match_rule.wait_for_unit("sshd", timeout=30)
+
+    server_lazy.wait_for_unit("sshd.socket", timeout=30)
+    server_localhost_only_lazy.wait_for_unit("sshd.socket", timeout=30)
 
     with subtest("manual-authkey"):
         client.succeed("mkdir -m 700 /root/.ssh")