sweepbatcher: enable all logs in tests

This commit is contained in:
Boris Nagaev 2024-06-25 01:10:12 -03:00
parent aa6d748647
commit 569c35da20
No known key found for this signature in database

View file

@ -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()