Skip to content

Commit 208ca70

Browse files
committed
disable logger for cleaner test output
1 parent 919cc6a commit 208ca70

File tree

3 files changed

+6
-14
lines changed

3 files changed

+6
-14
lines changed

async_handoff_integration_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,3 +346,7 @@ func TestEventDrivenHandoffIntegration(t *testing.T) {
346346
}
347347
})
348348
}
349+
350+
func init() {
351+
SetLogger(&VoidLogger{})
352+
}

internal/pool/pool_test.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ import (
1111
. "github.com/bsm/ginkgo/v2"
1212
. "github.com/bsm/gomega"
1313
"github.com/redis/go-redis/v9"
14-
"github.com/redis/go-redis/v9/internal"
15-
1614
"github.com/redis/go-redis/v9/internal/pool"
1715
)
1816

@@ -440,6 +438,5 @@ var _ = Describe("race", func() {
440438
})
441439

442440
func init() {
443-
filterLogger := internal.NewFilterLogger([]string{"test panic", "was not able to get a healthy connection after"})
444-
redis.SetLogger(filterLogger)
441+
redis.SetLogger(&redis.VoidLogger{})
445442
}

main_test.go

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import (
1313
. "github.com/bsm/ginkgo/v2"
1414
. "github.com/bsm/gomega"
1515
"github.com/redis/go-redis/v9"
16-
"github.com/redis/go-redis/v9/internal"
1716
)
1817

1918
const (
@@ -103,15 +102,7 @@ var _ = BeforeSuite(func() {
103102
fmt.Printf("RCEDocker: %v\n", RCEDocker)
104103
fmt.Printf("REDIS_VERSION: %.1f\n", RedisVersion)
105104
fmt.Printf("CLIENT_LIBS_TEST_IMAGE: %v\n", os.Getenv("CLIENT_LIBS_TEST_IMAGE"))
106-
107-
filterLogger := internal.NewFilterLogger([]string{
108-
"ERR unknown subcommand 'maint_notifications'",
109-
"test panic",
110-
"sentinel:",
111-
"hitless:",
112-
"pubsub:",
113-
})
114-
redis.SetLogger(filterLogger)
105+
redis.SetLogger(&redis.VoidLogger{})
115106

116107
if RedisVersion < 7.0 || RedisVersion > 9 {
117108
panic("incorrect or not supported redis version")

0 commit comments

Comments
 (0)