Skip to content

Commit c0e7f89

Browse files
committed
Allow multiple attempts in egress firewall test
this test is failing when using kata-containers, which might be related to longer startup times of kata-containers: curl: (28) Connection timed out after 1001 milliseconds let's use the "--retry" feature of curl. This should not affect the successful tests as they should return immediately, while it might prolong the failing tests from 3s to 30s. With kata we need about 6-12s so 30s should be safe for us. Signed-off-by: Lukáš Doktor <[email protected]>
1 parent bb58ccb commit c0e7f89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/extended/networking/egress_firewall.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ func sendEgressFwTraffic(f *e2e.Framework, mgmtFw *e2e.Framework, oc *exutil.CLI
151151
// Test curl to redhat.com should pass
152152
// because we have allow dns rule for redhat.com
153153
g.By("sending traffic that matches allow dns rule")
154-
_, err = oc.Run("exec").Args(pod, "--", "curl", "-q", "-s", "-I", "-m3", "https://redhat.com").Output()
154+
_, err = oc.Run("exec").Args(pod, "--", "curl", "-q", "-s", "-I", "-m3", "--retry", "10", "--retry-all-errors", "https://redhat.com").Output()
155155
expectNoError(err)
156156

157157
if checkWildcard {

0 commit comments

Comments
 (0)