From 8c98f405de440b611f884163c83e9d98d50bee99 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 | 12 +++--------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/internal/test/e2e/cluster.go b/internal/test/e2e/cluster.go index 1a8c016c63..095c8141d5 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 a91858aef7..c12a8da076 100644 --- a/internal/test/e2e/cluster_test.go +++ b/internal/test/e2e/cluster_test.go @@ -1453,9 +1453,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 +1707,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 +1912,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