add wait to TestAgent_RPCPing

This commit is contained in:
Alvin Huang 2019-02-21 21:47:19 -05:00
parent d3b56af72f
commit c8847c4213
1 changed files with 1 additions and 0 deletions

View File

@ -132,6 +132,7 @@ func TestAgent_RPCPing(t *testing.T) {
t.Parallel()
a := NewTestAgent(t, t.Name(), "")
defer a.Shutdown()
testrpc.WaitForTestAgent(t, a.RPC, "dc1")
var out struct{}
if err := a.RPC("Status.Ping", struct{}{}, &out); err != nil {