Skip to content

Commit 4cd2555

Browse files
committed
Retry a small amount of times when checking nginx output
This can fail in rare cases, because we only check for the service to be ready, at which point some initial requests may still fail.
1 parent bee7869 commit 4cd2555

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/internal/integration/service_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,10 @@ func (s *IntegrationTestSuite) TestServiceVIPAddresses() {
375375

376376
cmd := exec.Command(
377377
"ssh", fmt.Sprintf("ubuntu@%s", public), "-i", s.sshkey,
378-
fmt.Sprintf("curl -s http://%s", addr),
378+
fmt.Sprintf(
379+
"curl -s --retry 3 --retry-delay 3 --retry-all-errors http://%s",
380+
addr,
381+
),
379382
)
380383
out, err := cmd.Output()
381384
s.Require().NoError(err)

0 commit comments

Comments
 (0)