summaryrefslogtreecommitdiff
path: root/test/e2e/network_create_test.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2020-09-30 08:58:57 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2020-09-30 09:50:59 -0400
commit5766f5b587ffc1b78b7a22c7434326bd149c3dd8 (patch)
treea12053bd9ec1db3333041879c699e6a888cfc18e /test/e2e/network_create_test.go
parent6fd0e9bb73ea91911ae1219cfc324bbc2f9f49fd (diff)
downloadpodman-5766f5b587ffc1b78b7a22c7434326bd149c3dd8.tar.gz
podman-5766f5b587ffc1b78b7a22c7434326bd149c3dd8.tar.bz2
podman-5766f5b587ffc1b78b7a22c7434326bd149c3dd8.zip
Make the e2e test network cleanup more robust.
We need to handle removal of non existing network. This allows the `removeCNINetwork` function always to be called. This is needed by tests which are trying to remove the network manually in order to prevent flakes. Fixes #7809 Signed-off-by: Paul Holzinger <paul.holzinger@web.de> Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'test/e2e/network_create_test.go')
-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 a81ca19eb..edd76739f 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", "-f", name})
session.WaitWithDefaultTimeout()
- Expect(session.ExitCode()).To(BeZero())
+ Expect(session.ExitCode()).To(BeNumerically("<=", 1))
}
func removeNetworkDevice(name string) {