Fixed unit test TestCatalogListServicesCommand (#4592)

This commit is contained in:
Pierre Souchay 2018-08-27 19:53:46 +02:00 committed by Freddy
parent 5e0218ccf4
commit 8e7b8bb524
1 changed files with 3 additions and 0 deletions

View File

@ -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{