Skip to content

Commit

Permalink
Remove duplication in log handler setup
Browse files Browse the repository at this point in the history
  • Loading branch information
ablease committed Sep 28, 2023
1 parent 56bebac commit 4a5a2f6
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions pkg/stream/stream_suite_test.go
Original file line number Diff line number Diff line change
@@ -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)
})

0 comments on commit 4a5a2f6

Please sign in to comment.