From c2a19e50902ee835827a5a1cf6f609aefa1d2c29 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 a9a100a54f..095f567658 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 {