mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-10 06:07:16 +01:00
fix check node1Err !=nil but return a nil value error err
Signed-off-by: alingse <alingse@foxmail.com>
This commit is contained in:
@@ -85,12 +85,12 @@ func establishTestConnection(t testing.TB) (net.Conn, net.Conn, error) {
|
||||
|
||||
remote := <-remoteConnChan
|
||||
if remote.err != nil {
|
||||
return nil, nil, err
|
||||
return nil, nil, remote.err
|
||||
}
|
||||
|
||||
local := <-localConnChan
|
||||
if local.err != nil {
|
||||
return nil, nil, err
|
||||
return nil, nil, local.err
|
||||
}
|
||||
|
||||
t.Cleanup(func() {
|
||||
|
||||
Reference in New Issue
Block a user