mirror of
https://github.com/moby/moby.git
synced 2025-10-24 09:13:09 +03:00
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>
This commit is contained in:
@@ -1764,7 +1764,7 @@ func (s *DockerNetworkSuite) TestDockerNetworkDisconnectFromBridge(c *check.C) {
|
||||
network := strings.TrimSpace(out)
|
||||
|
||||
name := "test"
|
||||
dockerCmd(c, "create", "--rm", "--name", name, "busybox", "top")
|
||||
dockerCmd(c, "create", "--name", name, "busybox", "top")
|
||||
|
||||
_, _, err := dockerCmdWithError("network", "disconnect", network, name)
|
||||
c.Assert(err, check.IsNil)
|
||||
|
||||
Reference in New Issue
Block a user