From c8847c421372d68032b130c28713b6012bb61105 Mon Sep 17 00:00:00 2001 From: Alvin Huang Date: Thu, 21 Feb 2019 21:47:19 -0500 Subject: [PATCH] add wait to TestAgent_RPCPing --- agent/agent_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/agent/agent_test.go b/agent/agent_test.go index a9a100a54..095f56765 100644 --- a/agent/agent_test.go +++ b/agent/agent_test.go @@ -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 {