From 3142dd9827a58824fcf1b76a0caa11efc6e7b2fb Mon Sep 17 00:00:00 2001 From: Kai Norman Clasen Date: Thu, 11 May 2023 16:50:25 +0200 Subject: nixosTests.vector: fix race condition --- nixos/tests/vector.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nixos') diff --git a/nixos/tests/vector.nix b/nixos/tests/vector.nix index 9309f6a14dd78..a55eb4e012c5b 100644 --- a/nixos/tests/vector.nix +++ b/nixos/tests/vector.nix @@ -31,7 +31,7 @@ with pkgs.lib; # ensure vector is forwarding the messages appropriately testScript = '' machine.wait_for_unit("vector.service") - machine.succeed("test -f /var/lib/vector/logs.log") + machine.wait_for_file("/var/lib/vector/logs.log") ''; }; } -- cgit 1.4.1