diff options
author | Nikolay Amiantov <ab@fmap.me> | 2017-03-01 03:16:35 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2017-03-01 03:16:35 +0300 |
commit | a6c6d084303ef995a889c04e5f779429d757bc30 (patch) | |
tree | cf0808f2203613675448e1dd7a42af37270becd5 /nixos/tests/samba.nix | |
parent | fe33c28ec94b8d6d533b08965671cd04100c2c0a (diff) |
samba test: fix race condition
Diffstat (limited to 'nixos/tests/samba.nix')
-rw-r--r-- | nixos/tests/samba.nix | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/nixos/tests/samba.nix b/nixos/tests/samba.nix index d6658ef0400b4..e446284fc0efd 100644 --- a/nixos/tests/samba.nix +++ b/nixos/tests/samba.nix @@ -37,12 +37,11 @@ import ./make-test.nix ({ pkgs, ... }: testScript = '' $server->start; - $server->waitForUnit("samba-smbd"); - $server->waitForUnit("samba-nmbd"); + $server->waitForUnit("samba.target"); $server->succeed("mkdir -p /public; echo bar > /public/foo"); $client->start; - $client->waitForUnit("network.target"); + $client->waitForUnit("remote-fs.target"); $client->succeed("[[ \$(cat /public/foo) = bar ]]"); ''; }) |