From 702dda6448d2f60ef93c1b52fb63bdccc50583b0 Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Fri, 14 May 2021 10:09:04 +0200 Subject: [PATCH] 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. --- lntest/itest/lnd_channel_backup_test.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lntest/itest/lnd_channel_backup_test.go b/lntest/itest/lnd_channel_backup_test.go index 437b924b..cc8e526b 100644 --- a/lntest/itest/lnd_channel_backup_test.go +++ b/lntest/itest/lnd_channel_backup_test.go @@ -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