mirror of
https://github.com/redis/go-redis.git
synced 2025-07-29 17:41:15 +03:00
Resent client pool when sentinel switches master
This commit is contained in:
@ -3,6 +3,7 @@ package redis_test
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"log"
|
||||
"net"
|
||||
"os"
|
||||
"os/exec"
|
||||
@ -50,6 +51,10 @@ var cluster = &clusterScenario{
|
||||
clients: make(map[string]*redis.Client, 6),
|
||||
}
|
||||
|
||||
func init() {
|
||||
redis.SetLogger(log.New(os.Stderr, "redis: ", log.LstdFlags|log.Lshortfile))
|
||||
}
|
||||
|
||||
var _ = BeforeSuite(func() {
|
||||
var err error
|
||||
|
||||
|
Reference in New Issue
Block a user