mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
nixos/tests/snapcast: minor polish to make the tests more expressive
This commit is contained in:
parent
845f41770e
commit
6d27068d7c
|
@ -72,10 +72,10 @@ in {
|
||||||
)
|
)
|
||||||
|
|
||||||
with subtest("test a connection"):
|
with subtest("test a connection"):
|
||||||
client.execute("systemd-run snapclient -h server -p ${toString port}")
|
client.execute("systemd-run --unit=snapcast-client snapclient -h server -p ${toString port}")
|
||||||
server.wait_until_succeeds(
|
server.wait_until_succeeds(
|
||||||
"journalctl -o cat -u snapserver.service | grep -q 'Hello from'"
|
"journalctl -o cat -u snapserver.service | grep -q 'Hello from'"
|
||||||
)
|
)
|
||||||
client.wait_until_succeeds("journalctl -o cat -u run-\* | grep -q ${toString bufferSize}")
|
client.wait_until_succeeds("journalctl -o cat -u snapcast-client | grep -q 'buffer: ${toString bufferSize}'")
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue