From 21e99dcb630e59e9340993a8913652683d91a8c5 Mon Sep 17 00:00:00 2001 From: Sylvain Rabot Date: Thu, 21 Nov 2019 14:17:24 +0100 Subject: [PATCH] Fix TestClusterJoinAndReconnect on macos (#2110) Signed-off-by: Sylvain Rabot --- cluster/cluster_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cluster/cluster_test.go b/cluster/cluster_test.go index 2ebab410..36ed4203 100644 --- a/cluster/cluster_test.go +++ b/cluster/cluster_test.go @@ -42,7 +42,7 @@ func testJoinLeave(t *testing.T) { p, err := Create( logger, prometheus.NewRegistry(), - "0.0.0.0:0", + "127.0.0.1:0", "", []string{}, true, @@ -69,7 +69,7 @@ func testJoinLeave(t *testing.T) { p2, err := Create( logger, prometheus.NewRegistry(), - "0.0.0.0:0", + "127.0.0.1:0", "", []string{p.Self().Address()}, true, @@ -101,7 +101,7 @@ func testReconnect(t *testing.T) { p, err := Create( logger, prometheus.NewRegistry(), - "0.0.0.0:0", + "127.0.0.1:0", "", []string{}, true, @@ -124,7 +124,7 @@ func testReconnect(t *testing.T) { p2, err := Create( logger, prometheus.NewRegistry(), - "0.0.0.0:0", + "127.0.0.1:0", "", []string{}, true, @@ -162,7 +162,7 @@ func testRemoveFailedPeers(t *testing.T) { p, err := Create( logger, prometheus.NewRegistry(), - "0.0.0.0:0", + "127.0.0.1:0", "", []string{}, true, @@ -211,7 +211,7 @@ func testInitiallyFailingPeers(t *testing.T) { p, err := Create( logger, prometheus.NewRegistry(), - "0.0.0.0:0", + "127.0.0.1:0", "", []string{}, true,