Skip to content

Commit 8141dac

Browse files
authored
Merge pull request #11728 from a-robinson/isolatedaddr
gossip/simulation: Use IsolatedTestAddr to avoid running out of ports
2 parents 05467b0 + e3561ba commit 8141dac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/gossip/simulation/network.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func NewNetwork(stopper *stop.Stopper, nodeCount int, createResolvers bool) *Net
104104
// CreateNode creates a simulation node and starts an RPC server for it.
105105
func (n *Network) CreateNode() (*Node, error) {
106106
server := rpc.NewServer(n.rpcContext)
107-
ln, err := net.Listen(util.TestAddr.Network(), util.TestAddr.String())
107+
ln, err := net.Listen(util.IsolatedTestAddr.Network(), util.IsolatedTestAddr.String())
108108
if err != nil {
109109
return nil, err
110110
}

0 commit comments

Comments
 (0)