nixosTests.vector: fix race condition

This commit is contained in:
Kai Norman Clasen 2023-05-11 16:50:25 +02:00
parent 8989ea2778
commit 3142dd9827

View file

@ -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")
'';
};
}