mirror of
https://github.com/redis/go-redis.git
synced 2025-07-29 17:41:15 +03:00
This reverts commit 346bfafddd
.
This commit is contained in:
10
main_test.go
10
main_test.go
@ -12,10 +12,10 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/go-redis/redis/v8"
|
||||
|
||||
. "github.com/onsi/ginkgo"
|
||||
. "github.com/onsi/gomega"
|
||||
|
||||
"github.com/go-redis/redis/v8"
|
||||
)
|
||||
|
||||
const (
|
||||
@ -117,7 +117,7 @@ func TestGinkgoSuite(t *testing.T) {
|
||||
RunSpecs(t, "go-redis")
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
func redisOptions() *redis.Options {
|
||||
return &redis.Options{
|
||||
@ -364,7 +364,7 @@ func startSentinel(port, masterName, masterPort string) (*redisProcess, error) {
|
||||
return p, nil
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
type badConnError string
|
||||
|
||||
@ -409,7 +409,7 @@ func (cn *badConn) Write([]byte) (int, error) {
|
||||
return 0, badConnError("bad connection")
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
type hook struct {
|
||||
beforeProcess func(ctx context.Context, cmd redis.Cmder) (context.Context, error)
|
||||
|
Reference in New Issue
Block a user