mirror of
https://github.com/containers/podman.git
synced 2025-05-21 17:16:22 +08:00
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>
This commit is contained in:
@ -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())
|
||||
}
|
||||
|
Reference in New Issue
Block a user