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:
Oliver Gugger 2021-05-14 10:09:04 +02:00
parent 57f3a2c595
commit 702dda6448
No known key found for this signature in database
GPG Key ID: 8E4256593F177720

View File

@ -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