From 9b635068d931f0c378317af1814af03d1154fcd3 Mon Sep 17 00:00:00 2001 From: "Jason E. Aten" Date: Mon, 18 Jan 2021 20:16:49 +0000 Subject: [PATCH] cleanup --- server/cluster_test.go | 8 -------- test/disco.go | 3 --- 2 files changed, 11 deletions(-) diff --git a/server/cluster_test.go b/server/cluster_test.go index e9b42d0fe..75878f493 100644 --- a/server/cluster_test.go +++ b/server/cluster_test.go @@ -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() diff --git a/test/disco.go b/test/disco.go index c7bbc87ca..b0af11953 100644 --- a/test/disco.go +++ b/test/disco.go @@ -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)