From a6a3f3a8c26fdd6900880c13e924e6879d6c714c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sat, 5 Nov 2011 21:23:01 +0000 Subject: [PATCH] * Fix race condition in the test. --- tests/nix-copy-closure.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/nix-copy-closure.nix b/tests/nix-copy-closure.nix index 5b00a9a5c..7e2cf3a08 100644 --- a/tests/nix-copy-closure.nix +++ b/tests/nix-copy-closure.nix @@ -37,6 +37,7 @@ makeTest ({ pkgs, ... }: let pkgA = pkgs.aterm; pkgB = pkgs.wget; in { $server->succeed("mkdir -m 700 /root/.ssh"); $server->copyFileFromHost("key.pub", "/root/.ssh/authorized_keys"); $server->waitForJob("sshd"); + $client->waitForJob("network-interfaces"); $client->succeed("ssh -o StrictHostKeyChecking=no " . $server->name() . " 'echo hello world'"); # Copy the closure of package A from the client to the server.