multi: update linter, fix new issues

This commit is contained in:
Oliver Gugger
2024-08-20 12:46:24 +02:00
parent 9eef428e77
commit e99e6662cf
21 changed files with 453 additions and 441 deletions

View File

@@ -2,7 +2,7 @@ package itest
import (
"context"
"fmt"
"errors"
"testing"
"github.com/btcsuite/btcd/btcutil"
@@ -219,7 +219,7 @@ func runFundMaxTestCase(ht *lntest.HarnessTest, alice, bob *node.HarnessNode,
// If we don't expect the channel opening to be
// successful, simply check for an error.
if testCase.chanOpenShouldFail {
expectedErr := fmt.Errorf(testCase.expectedErrStr)
expectedErr := errors.New(testCase.expectedErrStr)
ht.OpenChannelAssertErr(
alice, bob, chanParams, expectedErr,
)