Skip to content

Commit

Permalink
test: increase wait on service readiness
Browse files Browse the repository at this point in the history
This fails quite often when run in github actions so we increase the
timeout to a minute.
  • Loading branch information
ctrox committed Jun 23, 2024
1 parent b58414d commit e1b2edc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func TestE2E(t *testing.T) {

require.Eventually(t, func() bool {
return isCheckpointed(t, client, cfg, pod)
}, time.Second*10, time.Second)
}, time.Minute, time.Second)

stdout, stderr, err := podExec(cfg, pod, "date")
require.NoError(t, err)
Expand All @@ -186,7 +186,7 @@ func TestE2E(t *testing.T) {

require.Eventually(t, func() bool {
return isCheckpointed(t, client, cfg, pod)
}, time.Second*10, time.Second)
}, time.Minute, time.Second)

stdout, stderr, err := podExec(cfg, pod, "date")
require.NoError(t, err)
Expand Down
2 changes: 1 addition & 1 deletion e2e/setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ func createServiceAndWait(t testing.TB, ctx context.Context, client client.Clien
}

return len(endpoints.Subsets[0].Addresses) == replicas
}, time.Second*30, time.Second, "waiting for service endpoints to be ready") {
}, time.Minute, time.Second, "waiting for service endpoints to be ready") {
t.Log("service did not get ready")
}

Expand Down

0 comments on commit e1b2edc

Please sign in to comment.