From 09ff5f7224765df6bacb5c87f44fc822127ab5b2 Mon Sep 17 00:00:00 2001 From: Pierre Souchay Date: Mon, 27 Aug 2018 19:53:46 +0200 Subject: [PATCH] Fixed unit test TestCatalogListServicesCommand (#4592) --- command/catalog/list/services/catalog_list_services_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/command/catalog/list/services/catalog_list_services_test.go b/command/catalog/list/services/catalog_list_services_test.go index bc9b2e1b4..9f65dbdd6 100644 --- a/command/catalog/list/services/catalog_list_services_test.go +++ b/command/catalog/list/services/catalog_list_services_test.go @@ -4,6 +4,8 @@ import ( "strings" "testing" + "github.com/hashicorp/consul/testrpc" + "github.com/hashicorp/consul/agent" "github.com/hashicorp/consul/api" "github.com/mitchellh/cli" @@ -34,6 +36,7 @@ func TestCatalogListServicesCommand(t *testing.T) { t.Parallel() a := agent.NewTestAgent(t.Name(), ``) defer a.Shutdown() + testrpc.WaitForTestAgent(t, a.RPC, "dc1") // Add another service with tags for testing if err := a.Client().Agent().ServiceRegister(&api.AgentServiceRegistration{