summaryrefslogtreecommitdiff
path: root/test/e2e/run_networking_test.go
diff options
context:
space:
mode:
authorPaul Holzinger <pholzing@redhat.com>2022-05-25 15:42:52 +0200
committerPaul Holzinger <pholzing@redhat.com>2022-05-25 15:46:15 +0200
commitcb76d152307179ed2614115d2c4a447b201c5c9e (patch)
tree5c117e5c2066b7bde8f694fd47518f89472c4502 /test/e2e/run_networking_test.go
parent1dcd1c970d3438bd6044cce0aba9b7258cb6849d (diff)
downloadpodman-cb76d152307179ed2614115d2c4a447b201c5c9e.tar.gz
podman-cb76d152307179ed2614115d2c4a447b201c5c9e.tar.bz2
podman-cb76d152307179ed2614115d2c4a447b201c5c9e.zip
fix f35 integration test network flake
I am not 100% sure if this is actually causing the problem but I was able to reproduce locally and this change fixed it there. Without the `-n` option iptables tries to reverse lookup the ips to domain names. This is extremely slow for unknown reasons. Given the large amount of iptables entries due parallel test runs it will not succeed in the default 90 sec timeout. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'test/e2e/run_networking_test.go')
-rw-r--r--test/e2e/run_networking_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/e2e/run_networking_test.go b/test/e2e/run_networking_test.go
index 3b32b4b82..4081ec45b 100644
--- a/test/e2e/run_networking_test.go
+++ b/test/e2e/run_networking_test.go
@@ -381,7 +381,7 @@ EXPOSE 2004-2005/tcp`, ALPINE)
session := podmanTest.Podman([]string{"run", "-dt", "-p", fmt.Sprintf("%d:%d", port1, port2), ALPINE, "/bin/sh"})
session.WaitWithDefaultTimeout()
Expect(session).Should(Exit(0))
- results := SystemExec("iptables", []string{"-t", "nat", "-L"})
+ results := SystemExec("iptables", []string{"-t", "nat", "-nvL"})
Expect(results).Should(Exit(0))
Expect(results.OutputToString()).To(ContainSubstring(fmt.Sprintf("%d", port2)))