|
@@ -11,6 +11,7 @@ import (
|
|
"github.com/alicebob/miniredis/v2"
|
|
"github.com/alicebob/miniredis/v2"
|
|
red "github.com/go-redis/redis"
|
|
red "github.com/go-redis/redis"
|
|
"github.com/stretchr/testify/assert"
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
+ "github.com/zeromicro/go-zero/core/logx"
|
|
"github.com/zeromicro/go-zero/core/stringx"
|
|
"github.com/zeromicro/go-zero/core/stringx"
|
|
)
|
|
)
|
|
|
|
|
|
@@ -1135,6 +1136,8 @@ func TestRedis_WithPass(t *testing.T) {
|
|
}
|
|
}
|
|
|
|
|
|
func runOnRedis(t *testing.T, fn func(client *Redis)) {
|
|
func runOnRedis(t *testing.T, fn func(client *Redis)) {
|
|
|
|
+ logx.Disable()
|
|
|
|
+
|
|
s, err := miniredis.Run()
|
|
s, err := miniredis.Run()
|
|
assert.Nil(t, err)
|
|
assert.Nil(t, err)
|
|
defer func() {
|
|
defer func() {
|
|
@@ -1153,6 +1156,8 @@ func runOnRedis(t *testing.T, fn func(client *Redis)) {
|
|
}
|
|
}
|
|
|
|
|
|
func runOnRedisTLS(t *testing.T, fn func(client *Redis)) {
|
|
func runOnRedisTLS(t *testing.T, fn func(client *Redis)) {
|
|
|
|
+ logx.Disable()
|
|
|
|
+
|
|
s, err := miniredis.RunTLS(&tls.Config{
|
|
s, err := miniredis.RunTLS(&tls.Config{
|
|
Certificates: make([]tls.Certificate, 1),
|
|
Certificates: make([]tls.Certificate, 1),
|
|
InsecureSkipVerify: true,
|
|
InsecureSkipVerify: true,
|