Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use debug level logging in testing #1176

Merged
merged 1 commit into from Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/test/e2e/cluster.go
Expand Up @@ -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
Expand Down
13 changes: 3 additions & 10 deletions internal/test/e2e/cluster_test.go
Expand Up @@ -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"
)

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down