diff --git a/nixos/tests/vector/dnstap.nix b/nixos/tests/vector/dnstap.nix index 15720edb6d37..4b8c61006aa6 100644 --- a/nixos/tests/vector/dnstap.nix +++ b/nixos/tests/vector/dnstap.nix @@ -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")