multi: fix most obvious linter errors

This commit is contained in:
Oliver Gugger 2019-10-07 17:29:24 +02:00
parent 1cdb233a00
commit 36838cf7f4
No known key found for this signature in database
GPG key ID: 8E4256593F177720
21 changed files with 41 additions and 50 deletions

View file

@ -4,7 +4,6 @@ import (
"context"
"errors"
"testing"
"time"
"github.com/btcsuite/btcd/chaincfg"
@ -20,20 +19,14 @@ var (
testLoopOutOnChainCltvDelta = int32(30)
testChargeOnChainCltvDelta = int32(100)
testCltvDelta = 50
testSwapFee = btcutil.Amount(210)
testInvoiceExpiry = 180 * time.Second
testFixedPrepayAmount = btcutil.Amount(100)
testMinSwapAmount = btcutil.Amount(10000)
testMaxSwapAmount = btcutil.Amount(1000000)
testTxConfTarget = 2
testRepublishDelay = 10 * time.Second
)
// serverMock is used in client unit tests to simulate swap server behaviour.
type serverMock struct {
t *testing.T
expectedSwapAmt btcutil.Amount
swapInvoiceAmt btcutil.Amount
prepayInvoiceAmt btcutil.Amount