diff --git a/itest/lnd_network_test.go b/itest/lnd_network_test.go index 725d1b055..4f0ff8986 100644 --- a/itest/lnd_network_test.go +++ b/itest/lnd_network_test.go @@ -3,6 +3,7 @@ package itest import ( "fmt" "net" + "time" "github.com/lightningnetwork/lnd/lncfg" "github.com/lightningnetwork/lnd/lnrpc" @@ -219,6 +220,9 @@ func testAddPeerConfig(ht *lntest.HarnessTest) { args := []string{fmt.Sprintf("--addpeer=%v", alicePeerAddress)} 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) // If we list Carol's peers, Alice should already be