From 84dde097c729ff3c0fee0a15027ad058846bc34e Mon Sep 17 00:00:00 2001 From: Cuong Manh Le Date: Mon, 22 Jun 2020 11:16:06 +0700 Subject: [PATCH] integration: sleep for amount of time before running tests (#956) Most of the flaky failure due to the fact that not all pods are ready yet. We currently check the readiness by get all deployments and heuristic parsing the output. So let wait for another 10 seconds before running tests. --- integration/internal/cluster/setup.go | 1 + 1 file changed, 1 insertion(+) diff --git a/integration/internal/cluster/setup.go b/integration/internal/cluster/setup.go index 214bb7190..bea5bccf7 100644 --- a/integration/internal/cluster/setup.go +++ b/integration/internal/cluster/setup.go @@ -230,6 +230,7 @@ func applyManifests(ctx context.Context, jsonsrc string) error { } <-ticker.C } + time.Sleep(time.Second * 10) log.Info().Msg("all deployments are ready") return nil