mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-26 08:55:59 +01:00
test: due to persistent conn retry, don't consider already connected an error
This commit is contained in:
parent
e6a0b7bef6
commit
a88b093843
1 changed files with 3 additions and 1 deletions
|
@ -7,6 +7,7 @@ import (
|
|||
"io/ioutil"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"sync"
|
||||
"testing"
|
||||
"time"
|
||||
|
@ -1100,7 +1101,8 @@ func testRevokedCloseRetribution(net *networkHarness, t *harnessTest) {
|
|||
t.Fatalf("db copy failed: %v", bobChan.NumUpdates)
|
||||
}
|
||||
|
||||
if err = net.ConnectNodes(ctxb, net.Alice, net.Bob); err != nil {
|
||||
err = net.ConnectNodes(ctxb, net.Alice, net.Bob)
|
||||
if err != nil && !strings.Contains(err.Error(), "already connected") {
|
||||
t.Fatalf("unable to connect bob and alice: %v", err)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue