mirror of
https://github.com/outbackdingo/certificates.git
synced 2026-01-27 10:18:34 +00:00
Wait for CA to start in a goroutine
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user