@@ -3,6 +3,7 @@ package router
33import (
44 "context"
55 "fmt"
6+ "net"
67 "os"
78 "sort"
89 "strconv"
@@ -470,7 +471,7 @@ BFNBRELPe53ZdLKWpf2Sr96vRPRNw
470471 return
471472 }
472473
473- testSuites , err := runConformanceTests (oc , host , "h2spec" , 5 * time .Minute )
474+ testSuites , err := runConformanceTests (oc , host , "h2spec" , 10 * time .Minute )
474475 o .Expect (err ).NotTo (o .HaveOccurred ())
475476 o .Expect (testSuites ).ShouldNot (o .BeEmpty ())
476477
@@ -546,7 +547,14 @@ func failingTests(testSuites []*h2spec.JUnitTestSuite) []h2specFailingTest {
546547func runConformanceTests (oc * exutil.CLI , host , podName string , timeout time.Duration ) ([]* h2spec.JUnitTestSuite , error ) {
547548 var testSuites []* h2spec.JUnitTestSuite
548549
549- if err := wait .Poll (time .Second , timeout , func () (bool , error ) {
550+ if err := wait .Poll (2 * time .Second , timeout , func () (bool , error ) {
551+ // Error message will read as:
552+ // <date>: INFO: lookup <host>: no such host, retrying...
553+ if _ , err := net .LookupHost (host ); err != nil {
554+ e2e .Logf ("%v, retrying..." , err )
555+ return false , nil
556+ }
557+
550558 g .By ("Running the h2spec CLI test" )
551559
552560 // this is the output file in the pod
@@ -613,7 +621,7 @@ func runConformanceTestsAndLogAggregateFailures(oc *exutil.CLI, host, podName st
613621 failuresByTestCaseID := map [string ]int {}
614622
615623 for i := 1 ; i <= iterations ; i ++ {
616- testResults , err := runConformanceTests (oc , host , podName , 5 * time .Minute )
624+ testResults , err := runConformanceTests (oc , host , podName , 10 * time .Minute )
617625 if err != nil {
618626 e2e .Logf (err .Error ())
619627 continue
0 commit comments