From 5630a767668aafb755052b4183184ea289620031 Mon Sep 17 00:00:00 2001 From: Hongchao Deng Date: Thu, 18 Aug 2016 13:25:17 -0700 Subject: [PATCH] integration: NewClusterV3 should launch cluster before creating clients --- integration/cluster.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration/cluster.go b/integration/cluster.go index 755ba1905f4..326a12d6dff 100644 --- a/integration/cluster.go +++ b/integration/cluster.go @@ -837,6 +837,7 @@ func NewClusterV3(t *testing.T, cfg *ClusterConfig) *ClusterV3 { clus := &ClusterV3{ cluster: NewClusterByConfig(t, cfg), } + clus.Launch(t) for _, m := range clus.Members { client, err := NewClientV3(m) if err != nil { @@ -844,7 +845,6 @@ func NewClusterV3(t *testing.T, cfg *ClusterConfig) *ClusterV3 { } clus.clients = append(clus.clients, client) } - clus.Launch(t) return clus }