add wait to TestAgent_RPCPing

pull/5376/head
Alvin Huang 6 years ago
parent 5f2e709c3f
commit c2a19e5090

@ -132,6 +132,7 @@ func TestAgent_RPCPing(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")
var out struct{} var out struct{}
if err := a.RPC("Status.Ping", struct{}{}, &out); err != nil { if err := a.RPC("Status.Ping", struct{}{}, &out); err != nil {

Loading…
Cancel
Save