1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 05:00:16 +00:00

nixos/tests/pinnwand: use wait_for_open_port instead of direct sockstat call

This commit is contained in:
Martin Weinelt 2021-04-30 00:03:43 +02:00
parent 7b2bc43dba
commit b208338c36
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -61,7 +61,7 @@ in
client.wait_until_succeeds("ping -c1 server")
# make sure pinnwand is listening
server.wait_until_succeeds("ss -lnp | grep ${toString port}")
server.wait_for_open_port(${toString port})
# send the contents of /etc/machine-id
response = client.succeed("steck paste /etc/machine-id")