mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-11-10 01:33:11 +01:00
nixos/vector: tests: Use method to check for open DNSTAP socket
This commit is contained in:
parent
f1898d43e8
commit
8c33c65b88
|
|
@ -369,8 +369,7 @@ in
|
||||||
"journalctl -o cat -u vector.service | grep 'component_type=dnstap' | grep 'Listening... path=\"${dnstapSocket}\"'"
|
"journalctl -o cat -u vector.service | grep 'component_type=dnstap' | grep 'Listening... path=\"${dnstapSocket}\"'"
|
||||||
)
|
)
|
||||||
|
|
||||||
machine.wait_for_file("${dnstapSocket}")
|
machine.wait_for_open_unix_socket("${dnstapSocket}")
|
||||||
machine.succeed("test 770 -eq $(stat -c '%a' ${dnstapSocket})")
|
|
||||||
|
|
||||||
dnsclient.systemctl("start network-online.target")
|
dnsclient.systemctl("start network-online.target")
|
||||||
dnsclient.wait_for_unit("network-online.target")
|
dnsclient.wait_for_unit("network-online.target")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue