test: due to persistent conn retry, don't consider already connected an error
This commit is contained in:
1 file changed
+3
-1
+3
-1
@@ -7,6 +7,7 @@ import (
|
|||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
@@ -1100,7 +1101,8 @@ func testRevokedCloseRetribution(net *networkHarness, t *harnessTest) {
|
|||||||
t.Fatalf("db copy failed: %v", bobChan.NumUpdates)
|
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)
|
t.Fatalf("unable to connect bob and alice: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user