summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-12-10 17:56:28 +0000
committerGitHub <noreply@github.com>2021-12-10 17:56:28 +0000
commite993b88c03e1ef822532aacdbc7e6e381143afd3 (patch)
treecf176696e6df3bda203112441f394108701db72f /test/e2e
parent47f4f149bd4bf71223a056f95d2ae110c240c66b (diff)
parentbc191ca7d3899981fda172b5ddcf71ec247f9d20 (diff)
downloadpodman-e993b88c03e1ef822532aacdbc7e6e381143afd3.tar.gz
podman-e993b88c03e1ef822532aacdbc7e6e381143afd3.tar.bz2
podman-e993b88c03e1ef822532aacdbc7e6e381143afd3.zip
Merge pull request #12573 from Luap99/fix-test
fix e2e test missing network cleanup
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/network_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/e2e/network_test.go b/test/e2e/network_test.go
index 92f962abc..424561943 100644
--- a/test/e2e/network_test.go
+++ b/test/e2e/network_test.go
@@ -355,13 +355,12 @@ var _ = Describe("Podman network", func() {
})
It("podman network remove after disconnect when container initially created with the network", func() {
- SkipIfRootless("disconnect works only in non rootless container")
-
container := "test"
- network := "foo"
+ network := "foo" + stringid.GenerateNonCryptoID()
session := podmanTest.Podman([]string{"network", "create", network})
session.WaitWithDefaultTimeout()
+ defer podmanTest.removeCNINetwork(network)
Expect(session).Should(Exit(0))
session = podmanTest.Podman([]string{"run", "--name", container, "--network", network, "-d", ALPINE, "top"})