From d10b5a396b659c495c1cd7893f37d4c82541a7ea Mon Sep 17 00:00:00 2001 From: Alvin Huang Date: Fri, 15 Feb 2019 12:24:38 -0500 Subject: [PATCH] add wait to TestOperator_AutopilotCASConfiguration --- agent/operator_endpoint_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/agent/operator_endpoint_test.go b/agent/operator_endpoint_test.go index f48e4fa29c..46add896af 100644 --- a/agent/operator_endpoint_test.go +++ b/agent/operator_endpoint_test.go @@ -346,6 +346,7 @@ func TestOperator_AutopilotCASConfiguration(t *testing.T) { t.Parallel() a := NewTestAgent(t, t.Name(), "") defer a.Shutdown() + testrpc.WaitForTestAgent(t, a.RPC, "dc1") body := bytes.NewBuffer([]byte(`{"CleanupDeadServers": false}`)) req, _ := http.NewRequest("PUT", "/v1/operator/autopilot/configuration", body)