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:
parent
38aa96fc39
commit
ebec07fd24
@ -90,7 +90,12 @@ in {
|
|||||||
testScript = ''
|
testScript = ''
|
||||||
start_all()
|
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"):
|
with subtest("manual-authkey"):
|
||||||
client.succeed("mkdir -m 700 /root/.ssh")
|
client.succeed("mkdir -m 700 /root/.ssh")
|
||||||
|
Loading…
Reference in New Issue
Block a user