This commit is contained in:
Jason E. Aten 2021-01-18 20:16:49 +00:00
parent ad1c3ff3fb
commit 9b635068d9
2 changed files with 0 additions and 11 deletions

View file

@ -662,14 +662,6 @@ func TestCluster_GossipMembership(t *testing.T) {
eg.Go(func() error {
// Pass invalid seed as first in list
m2.Config.Gossip.Seeds = []string{seed, "http://localhost:8765"}
/*
err := port.GetPorts(func(lsns []*net.TCPListener) error {
_ = lsns[0].Close()
p = lsns[0].Addr().(*net.TCPAddr).Port
m2.Config.Gossip.Port = fmt.Sprintf("%d", p)
return m2.Start()
}, 1, 10)
*/
err := port.GetPort(func(p int) error {
m2.Config.Gossip.Port = fmt.Sprintf("%d", p)
return m2.Start()

View file

@ -24,7 +24,6 @@ import (
"github.com/pilosa/pilosa/v2/etcd"
"github.com/pilosa/pilosa/v2/gossip"
"github.com/pilosa/pilosa/v2/server"
//"github.com/pilosa/pilosa/v2/test/port"
)
type Ports struct {
@ -55,9 +54,7 @@ func GenPortsConfig(ports []Ports) []*server.Config {
name := fmt.Sprintf("server%d", i)
lsnC, portC := ports[i].LsnC, ports[i].PortC
//lsnC, portC := port.MustGetBoundTCPListener()
lClientURL := fmt.Sprintf("http://localhost:%d", portC)
//lsnP, portP := port.MustGetBoundTCPListener()
lsnP, portP := ports[i].LsnP, ports[i].PortP
lPeerURL := fmt.Sprintf("http://localhost:%d", portP)