tests/infrastructure: Fix flaky subtest

This commit is contained in:
SebastianStork 2026-02-26 00:50:17 +01:00
parent d83843e5e1
commit 1627f19331
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q

View file

@ -159,9 +159,9 @@
with subtest("SSH access restricted by role"): with subtest("SSH access restricted by role"):
client1.succeed("ssh ${sshOptions} seb@server 'echo Hello'") client1.succeed("ssh ${sshOptions} seb@server 'echo Hello'")
client1.succeed("ssh ${sshOptions} seb@client2 'echo Hello'") client1.succeed("ssh ${sshOptions} seb@client2 'echo Hello'")
server.fail("ssh ${sshOptions} seb@client2 'echo Hello'") server.fail("timeout 5 ssh ${sshOptions} seb@client2 'echo Hello'")
with subtest("SSH not reachable on underlay"): with subtest("SSH not reachable on underlay"):
client1.fail("ssh ${sshOptions} seb@${serverNetCfg.underlay.address} 'echo Hello'") client1.fail("timeout 5 ssh ${sshOptions} seb@${serverNetCfg.underlay.address} 'echo Hello'")
''; '';
} }