summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBrent Baude <bbaude@redhat.com>2020-03-20 16:19:58 -0500
committerBrent Baude <bbaude@redhat.com>2020-03-20 16:19:58 -0500
commit232b5034cfea90d9c5c443d8631013beeef39009 (patch)
tree04df14614cf8c8f902cb52d08f31137b9160a940 /test
parent6df1d2043bd3cd2252ea3d737cf542e332106074 (diff)
downloadpodman-232b5034cfea90d9c5c443d8631013beeef39009.tar.gz
podman-232b5034cfea90d9c5c443d8631013beeef39009.tar.bz2
podman-232b5034cfea90d9c5c443d8631013beeef39009.zip
when removing networks for tests, force should be used
when removing networks in integration tests, we should should force; otherwise if the network has containers associated with it, it will fail to remove. Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'test')
-rw-r--r--test/e2e/network_create_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/e2e/network_create_test.go b/test/e2e/network_create_test.go
index b83757cc0..7eccaa9ab 100644
--- a/test/e2e/network_create_test.go
+++ b/test/e2e/network_create_test.go
@@ -58,7 +58,7 @@ func genericPluginsToPortMap(plugins interface{}, pluginType string) (network.Po
}
func (p *PodmanTestIntegration) removeCNINetwork(name string) {
- session := p.Podman([]string{"network", "rm", name})
+ session := p.Podman([]string{"network", "rm", "-f", name})
session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(BeZero())
}