Remove fake advertise address and fix TestAPI_OperatorAutopilotServerHealth

This commit is contained in:
Alex Dadgar 2018-03-19 15:49:12 -07:00
parent 6df57c177c
commit d498fa950a
2 changed files with 0 additions and 7 deletions

View File

@ -76,7 +76,6 @@ func TestAPI_OperatorAutopilotCASConfiguration(t *testing.T) {
func TestAPI_OperatorAutopilotServerHealth(t *testing.T) { func TestAPI_OperatorAutopilotServerHealth(t *testing.T) {
t.Parallel() t.Parallel()
c, s := makeClient(t, nil, func(c *testutil.TestServerConfig) { c, s := makeClient(t, nil, func(c *testutil.TestServerConfig) {
c.AdvertiseAddrs.RPC = "127.0.0.1"
c.Server.RaftProtocol = 3 c.Server.RaftProtocol = 3
}) })
defer s.Stop() defer s.Stop()

View File

@ -92,12 +92,6 @@ func defaultServerConfig(t testing.T) *TestServerConfig {
NodeName: fmt.Sprintf("node-%d", ports[0]), NodeName: fmt.Sprintf("node-%d", ports[0]),
DisableCheckpoint: true, DisableCheckpoint: true,
LogLevel: "DEBUG", 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{ Ports: &PortsConfig{
HTTP: ports[0], HTTP: ports[0],
RPC: ports[1], RPC: ports[1],