diff options
author | baude <bbaude@redhat.com> | 2020-11-09 16:35:12 -0600 |
---|---|---|
committer | baude <bbaude@redhat.com> | 2020-11-09 16:35:12 -0600 |
commit | ddadc99e99825571dbc30da365ec4be9e90a40e9 (patch) | |
tree | df017479ee71fd4ead842bd36ce56159c1651126 /test | |
parent | 110a1d8f25c87739afe790ac2bc461937f17222a (diff) | |
download | podman-ddadc99e99825571dbc30da365ec4be9e90a40e9.tar.gz podman-ddadc99e99825571dbc30da365ec4be9e90a40e9.tar.bz2 podman-ddadc99e99825571dbc30da365ec4be9e90a40e9.zip |
make network name uniq for dnsname tests
ed identified that the dnsname integration test does not use a unique
name and therefore cannot be cleaned up. this was made worse by a
improper defer statement to remove the network should the test fail.
Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/run_networking_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/e2e/run_networking_test.go b/test/e2e/run_networking_test.go index a3cc352b1..e9c1bab21 100644 --- a/test/e2e/run_networking_test.go +++ b/test/e2e/run_networking_test.go @@ -6,6 +6,7 @@ import ( "strings" . "github.com/containers/podman/v2/test/utils" + "github.com/containers/storage/pkg/stringid" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "github.com/uber/jaeger-client-go/utils" @@ -601,11 +602,11 @@ var _ = Describe("Podman run networking", func() { session.WaitWithDefaultTimeout() Expect(session.ExitCode()).To(BeZero()) - net := "dnsNetTest" + net := "IntTest" + stringid.GenerateNonCryptoID() session = podmanTest.Podman([]string{"network", "create", net}) session.WaitWithDefaultTimeout() - Expect(session.ExitCode()).To(BeZero()) defer podmanTest.removeCNINetwork(net) + Expect(session.ExitCode()).To(BeZero()) pod2 := "testpod2" session = podmanTest.Podman([]string{"pod", "create", "--network", net, "--name", pod2}) |