mirror of
https://github.com/docker/cli.git
synced 2026-01-13 18:22:35 +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> Upstream-commit: f05ed0075893bb907b5cc2612d9193d775134e2d Component: engine
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