Browse code

Remove racy test causing tests to stall Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)

Michael Crosby authored on 2014/04/02 22:22:51
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,34 +0,0 @@
1
-package main
2
-
3
-import (
4
-	"os/exec"
5
-	"testing"
6
-)
7
-
8
-// Regression test for #3364
9
-func TestDockerStartWithPortCollision(t *testing.T) {
10
-	runCmd := exec.Command(dockerBinary, "run", "--name", "fail", "-p", "25:25", "busybox", "true")
11
-	out, stderr, exitCode, err := runCommandWithStdoutStderr(runCmd)
12
-	if err != nil && exitCode != 0 {
13
-		t.Fatal(out, stderr, err)
14
-	}
15
-
16
-	runCmd = exec.Command(dockerBinary, "run", "--name", "conflict", "-dti", "-p", "25:25", "busybox", "sh")
17
-	out, stderr, exitCode, err = runCommandWithStdoutStderr(runCmd)
18
-	if err != nil && exitCode != 0 {
19
-		t.Fatal(out, stderr, err)
20
-	}
21
-
22
-	startCmd := exec.Command(dockerBinary, "start", "-a", "fail")
23
-	out, stderr, exitCode, err = runCommandWithStdoutStderr(startCmd)
24
-	if err != nil && exitCode != 1 {
25
-		t.Fatal(out, err)
26
-	}
27
-
28
-	killCmd := exec.Command(dockerBinary, "kill", "conflict")
29
-	runCommand(killCmd)
30
-
31
-	deleteAllContainers()
32
-
33
-	logDone("start - -a=true error on port use")
34
-}