Remove fake advertise address and fix TestAPI_OperatorAutopilotServerHealth
This commit is contained in:
parent
6df57c177c
commit
d498fa950a
|
@ -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()
|
||||
|
|
|
@ -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],
|
||||
|
|
Loading…
Reference in New Issue