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 {