blocky/redis/redis_suite_test.go

26 lines
417 B
Go

package redis
import (
"context"
"testing"
"github.com/0xERR0R/blocky/log"
"github.com/go-redis/redis/v8"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
func init() {
log.Silence()
redis.SetLogger(NoLogs{})
}
func TestRedisClient(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "Redis Suite")
}
type NoLogs struct{}
func (l NoLogs) Printf(context.Context, string, ...interface{}) {}