mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-05 04:30:16 +02:00
itest: temp fix testAddPeerConfig
This commit is contained in:
parent
05c82d918e
commit
25a2e0f716
@ -3,6 +3,7 @@ package itest
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net"
|
"net"
|
||||||
|
"time"
|
||||||
|
|
||||||
"github.com/lightningnetwork/lnd/lncfg"
|
"github.com/lightningnetwork/lnd/lncfg"
|
||||||
"github.com/lightningnetwork/lnd/lnrpc"
|
"github.com/lightningnetwork/lnd/lnrpc"
|
||||||
@ -219,6 +220,9 @@ func testAddPeerConfig(ht *lntest.HarnessTest) {
|
|||||||
args := []string{fmt.Sprintf("--addpeer=%v", alicePeerAddress)}
|
args := []string{fmt.Sprintf("--addpeer=%v", alicePeerAddress)}
|
||||||
carol := ht.NewNode("Carol", args)
|
carol := ht.NewNode("Carol", args)
|
||||||
|
|
||||||
|
// TODO(yy): remove this once the peer conn race is fixed.
|
||||||
|
time.Sleep(1 * time.Second)
|
||||||
|
|
||||||
ht.EnsureConnected(alice, carol)
|
ht.EnsureConnected(alice, carol)
|
||||||
|
|
||||||
// If we list Carol's peers, Alice should already be
|
// If we list Carol's peers, Alice should already be
|
||||||
|
Loading…
x
Reference in New Issue
Block a user