From d498fa950a2f07e14932e91e0783c1e151fd291a Mon Sep 17 00:00:00 2001 From: Alex Dadgar Date: Mon, 19 Mar 2018 15:49:12 -0700 Subject: [PATCH] Remove fake advertise address and fix TestAPI_OperatorAutopilotServerHealth --- api/operator_autopilot_test.go | 1 - testutil/server.go | 6 ------ 2 files changed, 7 deletions(-) diff --git a/api/operator_autopilot_test.go b/api/operator_autopilot_test.go index 023de9923..fe2176a48 100644 --- a/api/operator_autopilot_test.go +++ b/api/operator_autopilot_test.go @@ -76,7 +76,6 @@ func TestAPI_OperatorAutopilotCASConfiguration(t *testing.T) { func TestAPI_OperatorAutopilotServerHealth(t *testing.T) { t.Parallel() c, s := makeClient(t, nil, func(c *testutil.TestServerConfig) { - c.AdvertiseAddrs.RPC = "127.0.0.1" c.Server.RaftProtocol = 3 }) defer s.Stop() diff --git a/testutil/server.go b/testutil/server.go index 80573e8a6..0be3bd54f 100644 --- a/testutil/server.go +++ b/testutil/server.go @@ -92,12 +92,6 @@ func defaultServerConfig(t testing.T) *TestServerConfig { NodeName: fmt.Sprintf("node-%d", ports[0]), DisableCheckpoint: true, LogLevel: "DEBUG", - // Advertise can't be localhost - AdvertiseAddrs: &Advertise{ - HTTP: "169.254.42.42", - RPC: "169.254.42.42", - Serf: "169.254.42.42", - }, Ports: &PortsConfig{ HTTP: ports[0], RPC: ports[1],