From 4a5a2f658f480f0367bafa9aa4d19025145392b8 Mon Sep 17 00:00:00 2001 From: Alex Blease Date: Thu, 28 Sep 2023 09:26:44 +0100 Subject: [PATCH] Remove duplication in log handler setup --- pkg/stream/stream_suite_test.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/pkg/stream/stream_suite_test.go b/pkg/stream/stream_suite_test.go index 0faa05c3..72f8f2c6 100644 --- a/pkg/stream/stream_suite_test.go +++ b/pkg/stream/stream_suite_test.go @@ -1,23 +1,13 @@ package stream_test import ( - "golang.org/x/exp/slog" "testing" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" ) -var logger *slog.Logger - func TestStream(t *testing.T) { RegisterFailHandler(Fail) RunSpecs(t, "Stream Suite") } - -var _ = BeforeSuite(func() { - h := slog.HandlerOptions{ - Level: slog.LevelDebug, - }.NewTextHandler(GinkgoWriter) - logger = slog.New(h) -})