From 8ffd65b12e7eeb74ddec11efd9fc3b49bbd568ea Mon Sep 17 00:00:00 2001 From: Uli Baum Date: Fri, 21 Sep 2018 09:22:03 +0200 Subject: [PATCH] nixos/tests/atd: wait for atd to start The test failed non-deterministically when an at command was issued before the atd daemon was running. --- nixos/tests/atd.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/tests/atd.nix b/nixos/tests/atd.nix index 9f367d4c1d2a..25db72799241 100644 --- a/nixos/tests/atd.nix +++ b/nixos/tests/atd.nix @@ -16,6 +16,7 @@ import ./make-test.nix ({ pkgs, ... }: testScript = '' startAll; + $machine->waitForUnit('atd.service'); # wait for atd to start $machine->fail("test -f ~root/at-1"); $machine->fail("test -f ~alice/at-1");