itest: reconnect nodes more quickly on SCB restore
Since there is a lot of connecting and disconnecting between nodes in the channel backup tests, we try to speed up that process by lowering the min backoff from 1 second to 50 milliseconds. We also make sure we never wait more than 1 second if it does take multple attempts. This should sum up and hopefully speed up our tests a bit.
This commit is contained in:
parent
57f3a2c595
commit
702dda6448
@ -825,9 +825,12 @@ func testChanRestoreScenario(t *harnessTest, net *lntest.NetworkHarness,
|
||||
|
||||
ctxb := context.Background()
|
||||
|
||||
var nodeArgs []string
|
||||
nodeArgs := []string{
|
||||
"--minbackoff=50ms",
|
||||
"--maxbackoff=1s",
|
||||
}
|
||||
if testCase.anchorCommit {
|
||||
nodeArgs = commitTypeAnchors.Args()
|
||||
nodeArgs = append(nodeArgs, commitTypeAnchors.Args()...)
|
||||
}
|
||||
|
||||
// First, we'll create a brand new node we'll use within the test. If
|
||||
|
Loading…
Reference in New Issue
Block a user