Browse Source

add wait to TestOperator_AutopilotCASConfiguration

pull/5376/head
Alvin Huang 6 years ago
parent
commit
d10b5a396b
  1. 1
      agent/operator_endpoint_test.go

1
agent/operator_endpoint_test.go

@ -346,6 +346,7 @@ func TestOperator_AutopilotCASConfiguration(t *testing.T) {
t.Parallel() t.Parallel()
a := NewTestAgent(t, t.Name(), "") a := NewTestAgent(t, t.Name(), "")
defer a.Shutdown() defer a.Shutdown()
testrpc.WaitForTestAgent(t, a.RPC, "dc1")
body := bytes.NewBuffer([]byte(`{"CleanupDeadServers": false}`)) body := bytes.NewBuffer([]byte(`{"CleanupDeadServers": false}`))
req, _ := http.NewRequest("PUT", "/v1/operator/autopilot/configuration", body) req, _ := http.NewRequest("PUT", "/v1/operator/autopilot/configuration", body)

Loading…
Cancel
Save