mirror of https://github.com/status-im/consul.git
Fixed unit test TestCatalogListServicesCommand (#4592)
This commit is contained in:
parent
5e0218ccf4
commit
8e7b8bb524
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue