lntest: catch window conn error in EnsureConnected

This commit also removes the first connection attempt inside
`SetupStandbyNodes` as the nodes are always connected inside each
subtest. The error returned from connection is now logged for debugging.
This commit is contained in:
yyforyongyu committed 2023-02-23 21:56:11 +08:00
1 parent f55f9dcb87
commit ae6e109f35
2 files changed
+25 -10

No files matched your search

-5
View File
@@ -186,11 +186,6 @@ func (h *HarnessTest) SetupStandbyNodes() {
h.Alice = h.NewNode("Alice", lndArgs)
h.Bob = h.NewNode("Bob", lndArgs)
// First, make a connection between the two nodes. This will wait until
// both nodes are fully started since the Connect RPC is guarded behind
// the server.Started() flag that waits for all subsystems to be ready.
h.ConnectNodes(h.Alice, h.Bob)
addrReq := &lnrpc.NewAddressRequest{
Type: lnrpc.AddressType_WITNESS_PUBKEY_HASH,
}