nixos/tests/openssh: wait for sshd(.socket) units, add timeout=30

Motivated by recently observed flakiness of this test on Hydra:

[1] https://github.com/NixOS/nixpkgs/pull/259051#issuecomment-1752363951
[2] https://hydra.nixos.org/build/237478399
This commit is contained in:
6t8k 2023-10-09 20:54:14 +02:00
parent 38aa96fc39
commit ebec07fd24
No known key found for this signature in database

View File

@ -90,7 +90,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")