Browse code

fixed TestDiffEnsureDockerinitFilesAreIgnored is too long #12672

Signed-off-by: Daniel Antlinger <d.antlinger@gmx.at>

Daniel Antlinger authored on 2015/04/24 08:35:13
Showing 1 changed files
... ...
@@ -40,12 +40,14 @@ func (s *DockerSuite) TestDiffFilenameShownInOutput(c *check.C) {
40 40
 func (s *DockerSuite) TestDiffEnsureDockerinitFilesAreIgnored(c *check.C) {
41 41
 	// this is a list of files which shouldn't show up in `docker diff`
42 42
 	dockerinitFiles := []string{"/etc/resolv.conf", "/etc/hostname", "/etc/hosts", "/.dockerinit", "/.dockerenv"}
43
+	containerCount := 5
43 44
 
44 45
 	// we might not run into this problem from the first run, so start a few containers
45
-	for i := 0; i < 20; i++ {
46
+	for i := 0; i < containerCount; i++ {
46 47
 		containerCmd := `echo foo > /root/bar`
47 48
 		runCmd := exec.Command(dockerBinary, "run", "-d", "busybox", "sh", "-c", containerCmd)
48 49
 		out, _, err := runCommandWithOutput(runCmd)
50
+
49 51
 		if err != nil {
50 52
 			c.Fatal(out, err)
51 53
 		}