From 7a703da862a67708c8a791f8aa57c02614739456 Mon Sep 17 00:00:00 2001 From: PJ Date: Wed, 17 Apr 2024 15:03:28 +0200 Subject: [PATCH] testing: use debug level logging in testing --- internal/test/e2e/cluster.go | 2 +- internal/test/e2e/cluster_test.go | 13 +++---------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/internal/test/e2e/cluster.go b/internal/test/e2e/cluster.go index 1a8c016c6..095c8141d 100644 --- a/internal/test/e2e/cluster.go +++ b/internal/test/e2e/cluster.go @@ -168,7 +168,7 @@ type testClusterOptions struct { // newTestLogger creates a console logger used for testing. func newTestLogger() *zap.Logger { - return newTestLoggerCustom(zapcore.ErrorLevel) + return newTestLoggerCustom(zapcore.DebugLevel) } // newTestLoggerCustom creates a console logger used for testing and allows diff --git a/internal/test/e2e/cluster_test.go b/internal/test/e2e/cluster_test.go index a91858aef..72ac4b95b 100644 --- a/internal/test/e2e/cluster_test.go +++ b/internal/test/e2e/cluster_test.go @@ -27,7 +27,6 @@ import ( "go.sia.tech/renterd/object" "go.sia.tech/renterd/wallet" "go.uber.org/zap" - "go.uber.org/zap/zapcore" "lukechampine.com/frand" ) @@ -1453,9 +1452,7 @@ func TestWalletTransactions(t *testing.T) { t.SkipNow() } - cluster := newTestCluster(t, testClusterOptions{ - logger: newTestLoggerCustom(zapcore.DebugLevel), - }) + cluster := newTestCluster(t, clusterOptsDefault) defer cluster.Shutdown() b := cluster.Bus tt := cluster.tt @@ -1709,9 +1706,7 @@ func TestWallet(t *testing.T) { t.SkipNow() } - cluster := newTestCluster(t, testClusterOptions{ - logger: newTestLoggerCustom(zapcore.DebugLevel), - }) + cluster := newTestCluster(t, clusterOptsDefault) defer cluster.Shutdown() b := cluster.Bus tt := cluster.tt @@ -1916,9 +1911,7 @@ func TestAlerts(t *testing.T) { t.SkipNow() } - cluster := newTestCluster(t, testClusterOptions{ - logger: newTestLoggerCustom(zapcore.DebugLevel), - }) + cluster := newTestCluster(t, clusterOptsDefault) defer cluster.Shutdown() b := cluster.Bus tt := cluster.tt