mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
sweepbatcher: enable all logs in tests
This commit is contained in:
parent
aa6d748647
commit
569c35da20
1 changed files with 6 additions and 0 deletions
|
|
@ -4,6 +4,7 @@ import (
|
|||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"os"
|
||||
"sync"
|
||||
"testing"
|
||||
"time"
|
||||
|
|
@ -12,6 +13,7 @@ import (
|
|||
"github.com/btcsuite/btcd/btcutil"
|
||||
"github.com/btcsuite/btcd/chaincfg/chainhash"
|
||||
"github.com/btcsuite/btcd/wire"
|
||||
"github.com/btcsuite/btclog"
|
||||
"github.com/lightninglabs/loop/loopdb"
|
||||
"github.com/lightninglabs/loop/test"
|
||||
"github.com/lightninglabs/loop/utils"
|
||||
|
|
@ -2256,6 +2258,10 @@ func (s *loopdbStore) AssertLoopOutStored() {
|
|||
func runTests(t *testing.T, testFn func(t *testing.T, store testStore,
|
||||
batcherStore testBatcherStore)) {
|
||||
|
||||
logger := btclog.NewBackend(os.Stdout).Logger("SWEEP")
|
||||
logger.SetLevel(btclog.LevelTrace)
|
||||
UseLogger(logger)
|
||||
|
||||
t.Run("mocks", func(t *testing.T) {
|
||||
store := loopdb.NewStoreMock(t)
|
||||
batcherStore := NewStoreMock()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue