Wait for CA to start in a goroutine

This commit is contained in:
Mariano Cano
2024-07-02 19:27:57 -07:00
parent 5817c95a12
commit ed71ac024b

View File

@@ -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)