lntest: show that multi addresses are not used

This commit adds an itest to demonstrate that if a peer advertises
multiplie external IP addresses, then they will not all be used to
reconnect to the peer during reconnection. This will be fixed in a
follow-up commit.
This commit is contained in:
Elle Mouton committed 2021-10-04 14:57:49 +02:00
1 parent 5177ec2f84
commit 18909e1a8e
3 files changed
+149 -2

No files matched your search

+2 -2
View File
@@ -346,10 +346,10 @@ func (n *NetworkHarness) NewNodeEtcd(name string, etcdCfg *etcd.Config,
// current instance of the network harness. The created node is running, but
// not yet connected to other nodes within the network.
func (n *NetworkHarness) NewNode(t *testing.T,
name string, extraArgs []string) *HarnessNode {
name string, extraArgs []string, opts ...NodeOption) *HarnessNode {
node, err := n.newNode(
name, extraArgs, false, nil, n.dbBackend, true,
name, extraArgs, false, nil, n.dbBackend, true, opts...,
)
require.NoErrorf(t, err, "unable to create new node for %s", name)