From ed71ac024b728d630d5804880d0fdb1d468604a8 Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Tue, 2 Jul 2024 19:27:57 -0700 Subject: [PATCH] Wait for CA to start in a goroutine --- test/integration/scep/common_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/integration/scep/common_test.go b/test/integration/scep/common_test.go index 86f64c3d..f6821555 100644 --- a/test/integration/scep/common_test.go +++ b/test/integration/scep/common_test.go @@ -39,6 +39,9 @@ func newCAClient(t *testing.T, caURL, rootFilepath string) *ca.Client { } func requireHealthyCA(t *testing.T, caClient *ca.Client) { + // Wait for CA + time.Sleep(time.Second) + ctx := context.Background() healthResponse, err := caClient.HealthWithContext(ctx) require.NoError(t, err)