From a6c6d084303ef995a889c04e5f779429d757bc30 Mon Sep 17 00:00:00 2001 From: Nikolay Amiantov Date: Wed, 1 Mar 2017 03:16:35 +0300 Subject: [PATCH] samba test: fix race condition --- nixos/tests/samba.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nixos/tests/samba.nix b/nixos/tests/samba.nix index d6658ef0400..e446284fc0e 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 ]]"); ''; })