mirror of https://github.com/go-redis/redis.git
Increase test timeout.
This commit is contained in:
parent
b792d8a4cf
commit
98414ea72a
2
ring.go
2
ring.go
|
@ -95,7 +95,7 @@ func (shard *ringShard) Vote(up bool) bool {
|
|||
// keys across multiple Redis servers (shards). It's safe for
|
||||
// concurrent use by multiple goroutines.
|
||||
//
|
||||
// It monitors the state of each shard and removes dead shards from
|
||||
// Ring monitors the state of each shard and removes dead shards from
|
||||
// the ring. When shard comes online it is added back to the ring. This
|
||||
// gives you maximum availability and partition tolerance, but no
|
||||
// consistency between different shards or even clients. Each client
|
||||
|
|
|
@ -56,7 +56,7 @@ var _ = Describe("Redis ring", func() {
|
|||
// Ring needs 5 * heartbeat time to detect that node is down.
|
||||
// Give it more to be sure.
|
||||
heartbeat := 100 * time.Millisecond
|
||||
time.Sleep(5*heartbeat + heartbeat)
|
||||
time.Sleep(5*heartbeat + 2*heartbeat)
|
||||
|
||||
setRingKeys()
|
||||
|
||||
|
|
Loading…
Reference in New Issue