itest: switch to openChannelTimeout

This switches a few call sites that used a different timeout when
openening channels to the correct openChannelTimeout, which better deal
with flakes in the CI.
This commit is contained in:
Matheus Degiovani 2020-06-02 14:00:36 -03:00
parent af660d0152
commit 3e1b4eadbb

View File

@ -13382,7 +13382,7 @@ func testChannelBackupUpdates(net *lntest.NetworkHarness, t *harnessTest) {
numChans := 2
chanAmt := btcutil.Amount(1000000)
for i := 0; i < numChans; i++ {
ctxt, _ := context.WithTimeout(ctxb, defaultTimeout)
ctxt, _ := context.WithTimeout(ctxb, channelOpenTimeout)
chanPoint := openChannelAndAssert(
ctxt, t, net, net.Alice, carol,
lntest.OpenChannelParams{
@ -13516,7 +13516,7 @@ func testExportChannelBackup(net *lntest.NetworkHarness, t *harnessTest) {
numChans := 2
chanAmt := btcutil.Amount(1000000)
for i := 0; i < numChans; i++ {
ctxt, _ := context.WithTimeout(ctxb, defaultTimeout)
ctxt, _ := context.WithTimeout(ctxb, channelOpenTimeout)
chanPoint := openChannelAndAssert(
ctxt, t, net, net.Alice, carol,
lntest.OpenChannelParams{