Browse code

Fixes race condition in test. Closes #9389.

Signed-off-by: Emily Maier <emily@emilymaier.net>

Emily Maier authored on 2014/11/29 03:48:50
Showing 1 changed files
... ...
@@ -13,7 +13,7 @@ func TestStartAttachReturnsOnError(t *testing.T) {
13 13
 	defer deleteAllContainers()
14 14
 
15 15
 	dockerCmd(t, "run", "-d", "--name", "test", "busybox")
16
-	dockerCmd(t, "stop", "test")
16
+	dockerCmd(t, "wait", "test")
17 17
 
18 18
 	// Expect this to fail because the above container is stopped, this is what we want
19 19
 	if _, err := runCommand(exec.Command(dockerBinary, "run", "-d", "--name", "test2", "--link", "test:test", "busybox")); err == nil {