From 41ea67ce1091400aa4c1a892e16de0e13c8b16f6 Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Thu, 10 Mar 2022 13:01:31 -0800 Subject: [PATCH] Attempt to fix a bootstrap tests --- ca/bootstrap_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ca/bootstrap_test.go b/ca/bootstrap_test.go index 9482d657..0e16bd7d 100644 --- a/ca/bootstrap_test.go +++ b/ca/bootstrap_test.go @@ -408,6 +408,7 @@ func TestBootstrapClientServerRotation(t *testing.T) { server.ServeTLS(listener, "", "") }() defer server.Close() + time.Sleep(1 * time.Second) // Create bootstrap client token = generateBootstrapToken(caURL, "client", "ef742f95dc0d8aa82d3cca4017af6dac3fce84290344159891952d18c53eefe7") @@ -419,7 +420,6 @@ func TestBootstrapClientServerRotation(t *testing.T) { // doTest does a request that requires mTLS doTest := func(client *http.Client) error { - time.Sleep(1 * time.Second) // test with ca resp, err := client.Post(caURL+"/renew", "application/json", http.NoBody) if err != nil {