summaryrefslogtreecommitdiff
path: root/test/e2e/run_networking_test.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-11-29 18:08:20 +0100
committerGitHub <noreply@github.com>2021-11-29 18:08:20 +0100
commitc234c20a70304d526952f167c7c00122e5d54267 (patch)
tree77aa079636ea326eec76520734e0ae9e815ca6c2 /test/e2e/run_networking_test.go
parent3d19f1a7fac5705518693cad3f2c7f94dcc2f1d4 (diff)
parentb63d696405593d056cce850e1503a6bef17c2cf8 (diff)
downloadpodman-c234c20a70304d526952f167c7c00122e5d54267.tar.gz
podman-c234c20a70304d526952f167c7c00122e5d54267.tar.bz2
podman-c234c20a70304d526952f167c7c00122e5d54267.zip
Merge pull request #12401 from edsantiago/lint_tests
e2e tests: enable golint
Diffstat (limited to 'test/e2e/run_networking_test.go')
-rw-r--r--test/e2e/run_networking_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/e2e/run_networking_test.go b/test/e2e/run_networking_test.go
index e2004c8e0..5898cc38d 100644
--- a/test/e2e/run_networking_test.go
+++ b/test/e2e/run_networking_test.go
@@ -789,7 +789,7 @@ EXPOSE 2004-2005/tcp`, ALPINE)
Expect(run.OutputToString()).ToNot(ContainSubstring("127.0.0.1 %s", hostname))
})
- ping_test := func(netns string) {
+ pingTest := func(netns string) {
hostname := "testctr"
run := podmanTest.Podman([]string{"run", netns, "--hostname", hostname, ALPINE, "ping", "-c", "1", hostname})
run.WaitWithDefaultTimeout()
@@ -801,11 +801,11 @@ EXPOSE 2004-2005/tcp`, ALPINE)
}
It("podman attempt to ping container name and hostname --net=none", func() {
- ping_test("--net=none")
+ pingTest("--net=none")
})
It("podman attempt to ping container name and hostname --net=private", func() {
- ping_test("--net=private")
+ pingTest("--net=private")
})
It("podman run check dnsname plugin", func() {