Jelajahi Sumber

Wait for CA to start in a goroutine

Mariano Cano 2 tahun lalu
induk
melakukan
ed71ac024b
1 mengubah file dengan 3 tambahan dan 0 penghapusan
  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) {
 func requireHealthyCA(t *testing.T, caClient *ca.Client) {
+	// Wait for CA
+	time.Sleep(time.Second)
+
 	ctx := context.Background()
 	ctx := context.Background()
 	healthResponse, err := caClient.HealthWithContext(ctx)
 	healthResponse, err := caClient.HealthWithContext(ctx)
 	require.NoError(t, err)
 	require.NoError(t, err)