about summary refs log tree commit diff
path: root/nixos/tests/systemd.nix
diff options
context:
space:
mode:
authorxeji <xeji@cat3.de>2018-04-16 00:43:33 +0200
committerxeji <xeji@cat3.de>2018-04-16 00:43:33 +0200
commit9d5af5871d7099185d35c836934fc5b551a0080a (patch)
tree331f1b969f38b21399dc07721e85631a93f2bf83 /nixos/tests/systemd.nix
parentfc7c95b0aa4e0e798ff3d5234020d88a64f49032 (diff)
downloadnixlib-9d5af5871d7099185d35c836934fc5b551a0080a.tar
nixlib-9d5af5871d7099185d35c836934fc5b551a0080a.tar.gz
nixlib-9d5af5871d7099185d35c836934fc5b551a0080a.tar.bz2
nixlib-9d5af5871d7099185d35c836934fc5b551a0080a.tar.lz
nixlib-9d5af5871d7099185d35c836934fc5b551a0080a.tar.xz
nixlib-9d5af5871d7099185d35c836934fc5b551a0080a.tar.zst
nixlib-9d5af5871d7099185d35c836934fc5b551a0080a.zip
nixos/test/systemd: fix broken test
timing bug resulted in sporadic test failures on hydra
Diffstat (limited to 'nixos/tests/systemd.nix')
-rw-r--r--nixos/tests/systemd.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/tests/systemd.nix b/nixos/tests/systemd.nix
index 2df6f341c4ef..65aa553b3148 100644
--- a/nixos/tests/systemd.nix
+++ b/nixos/tests/systemd.nix
@@ -46,6 +46,8 @@ import ./make-test.nix {
 
   testScript = ''
     $machine->waitForX;
+    # wait for user services
+    $machine->waitForUnit("default.target","alice");
 
     # Regression test for https://github.com/NixOS/nixpkgs/issues/35415
     subtest "configuration files are recognized by systemd", sub {