nixos/vector: tests: Use method to check for open DNSTAP socket

This commit is contained in:
Jonathan Davies 2025-09-25 16:54:38 +00:00
parent f1898d43e8
commit 8c33c65b88
No known key found for this signature in database

View file

@ -369,8 +369,7 @@ in
"journalctl -o cat -u vector.service | grep 'component_type=dnstap' | grep 'Listening... path=\"${dnstapSocket}\"'"
)
machine.wait_for_file("${dnstapSocket}")
machine.succeed("test 770 -eq $(stat -c '%a' ${dnstapSocket})")
machine.wait_for_open_unix_socket("${dnstapSocket}")
dnsclient.systemctl("start network-online.target")
dnsclient.wait_for_unit("network-online.target")