diff options
author | Paul Holzinger <pholzing@redhat.com> | 2022-09-29 14:37:02 +0200 |
---|---|---|
committer | Paul Holzinger <pholzing@redhat.com> | 2022-09-29 14:39:25 +0200 |
commit | 3b5171d0ee699059e6f5108e7135c4d3a14fbb66 (patch) | |
tree | b2b3f2a1cc8635efb791ed67f8c3cce19f5f1526 /test/e2e/prune_test.go | |
parent | f52feded3ce6c1ad2af046ab774fbc2b9c832487 (diff) | |
download | podman-3b5171d0ee699059e6f5108e7135c4d3a14fbb66.tar.gz podman-3b5171d0ee699059e6f5108e7135c4d3a14fbb66.tar.bz2 podman-3b5171d0ee699059e6f5108e7135c4d3a14fbb66.zip |
fix "podman system prune networks" flake
Since by default the network config dir is shared in the e2e tests any
other parallel running test could remove a network and cause this test to
fail.
Fixes #15990
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'test/e2e/prune_test.go')
-rw-r--r-- | test/e2e/prune_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/e2e/prune_test.go b/test/e2e/prune_test.go index 0b1d68aea..e91569231 100644 --- a/test/e2e/prune_test.go +++ b/test/e2e/prune_test.go @@ -259,6 +259,12 @@ var _ = Describe("Podman prune", func() { }) It("podman system prune networks", func() { + // set custom network directory to prevent flakes since the dir is shared with all tests by default + podmanTest.NetworkConfigDir = tempdir + if IsRemote() { + podmanTest.RestartRemoteService() + } + // Create new network. session := podmanTest.Podman([]string{"network", "create", "test"}) session.WaitWithDefaultTimeout() |