Skip to content

Commit

Permalink
Merge pull request containers#12573 from Luap99/fix-test
Browse files Browse the repository at this point in the history
fix e2e test missing network cleanup
  • Loading branch information
openshift-merge-robot authored Dec 10, 2021
2 parents 47f4f14 + bc191ca commit e993b88
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/e2e/network_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"})
Expand Down

0 comments on commit e993b88

Please sign in to comment.