Selaa lähdekoodia

Wait for CA to start in a goroutine

Mariano Cano 2 vuotta sitten
vanhempi
sitoutus
ed71ac024b
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      test/integration/scep/common_test.go

+ 3 - 0
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)