Browse code

Fix improper use of `--rm` in test case

Test is testing that a user can disconnect from the default network
before it is started (#26220).
This test does not need to use `--rm`, which is never aken into account
since the container is never started.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>

Brian Goff authored on 2016/09/15 02:14:30
Showing 1 changed files
... ...
@@ -1764,7 +1764,7 @@ func (s *DockerNetworkSuite) TestDockerNetworkDisconnectFromBridge(c *check.C) {
1764 1764
 	network := strings.TrimSpace(out)
1765 1765
 
1766 1766
 	name := "test"
1767
-	dockerCmd(c, "create", "--rm", "--name", name, "busybox", "top")
1767
+	dockerCmd(c, "create", "--name", name, "busybox", "top")
1768 1768
 
1769 1769
 	_, _, err := dockerCmdWithError("network", "disconnect", network, name)
1770 1770
 	c.Assert(err, check.IsNil)