File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -404,6 +404,13 @@ func (s *IntegrationTestSuite) TestServiceEndToEndUDP() {
404404 s .Require ().Len (service .Status .LoadBalancer .Ingress , 2 )
405405 addr := service .Status .LoadBalancer .Ingress [0 ].IP
406406
407+ // We have to wait a few seconds until the configured udp-connect
408+ // health monitor reports the services as up. Depending on the
409+ // timings, we could see i/o timeouts otherwise.
410+ // Sleeping 9 seconds allows for at least 3 successful up probes,
411+ // which is one more than required.
412+ time .Sleep (3 * 3 * time .Second )
413+
407414 // Verify UDP service responses using Go's UDP client
408415 s .T ().Log ("Verifying UDP echo service responses" )
409416 errors := 0
@@ -412,7 +419,7 @@ func (s *IntegrationTestSuite) TestServiceEndToEndUDP() {
412419 // Create UDP client
413420 conn , err := net .Dial ("udp" , fmt .Sprintf ("%s:5000" , addr ))
414421 s .Require ().NoError (err )
415- s .T ().Log ("UDP client connected successfully" )
422+ s .T ().Log ("UDP client created successfully" )
416423 defer conn .Close ()
417424
418425 // Set read timeout
You can’t perform that action at this time.
0 commit comments