Skip to content

Commit 5ed27f4

Browse files
committed
make sure logging is setup for cases ignoring non-default logger
1 parent f126b9c commit 5ed27f4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

flow/e2e/main_test.go

+6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
package e2e
22

33
import (
4+
"log/slog"
5+
"os"
6+
47
"github.com/PeerDB-io/peer-flow/cmd"
8+
"github.com/PeerDB-io/peer-flow/logger"
59
)
610

711
// TestMain would require merging all tests into e2e package
812
func init() {
13+
slog.SetDefault(slog.New(logger.NewHandler(slog.NewJSONHandler(os.Stdout, nil))))
14+
915
_, peerWorker, peerErr := cmd.WorkerMain(&cmd.WorkerOptions{
1016
TemporalHostPort: "localhost:7233",
1117
EnableProfiling: false,

0 commit comments

Comments
 (0)