diff options
author | Brent Baude <bbaude@redhat.com> | 2020-03-20 16:19:58 -0500 |
---|---|---|
committer | Brent Baude <bbaude@redhat.com> | 2020-03-20 16:19:58 -0500 |
commit | 232b5034cfea90d9c5c443d8631013beeef39009 (patch) | |
tree | 04df14614cf8c8f902cb52d08f31137b9160a940 /test | |
parent | 6df1d2043bd3cd2252ea3d737cf542e332106074 (diff) | |
download | podman-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.go | 2 |
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()) } |