add wait to TestOperator_AutopilotCASConfiguration

This commit is contained in:
Alvin Huang 2019-02-15 12:24:38 -05:00
parent dc200daf21
commit d10b5a396b
1 changed files with 1 additions and 0 deletions

View File

@ -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)