lol

samba test: fix race condition

+2 -3
+2 -3
nixos/tests/samba.nix
··· 37 testScript = 38 '' 39 $server->start; 40 - $server->waitForUnit("samba-smbd"); 41 - $server->waitForUnit("samba-nmbd"); 42 $server->succeed("mkdir -p /public; echo bar > /public/foo"); 43 44 $client->start; 45 - $client->waitForUnit("network.target"); 46 $client->succeed("[[ \$(cat /public/foo) = bar ]]"); 47 ''; 48 })
··· 37 testScript = 38 '' 39 $server->start; 40 + $server->waitForUnit("samba.target"); 41 $server->succeed("mkdir -p /public; echo bar > /public/foo"); 42 43 $client->start; 44 + $client->waitForUnit("remote-fs.target"); 45 $client->succeed("[[ \$(cat /public/foo) = bar ]]"); 46 ''; 47 })