Increase test timeout.

This commit is contained in:
Vladimir Mihailenco 2015-11-21 10:20:01 +02:00
parent b792d8a4cf
commit 98414ea72a
2 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@ func (shard *ringShard) Vote(up bool) bool {
// keys across multiple Redis servers (shards). It's safe for // keys across multiple Redis servers (shards). It's safe for
// concurrent use by multiple goroutines. // 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 // the ring. When shard comes online it is added back to the ring. This
// gives you maximum availability and partition tolerance, but no // gives you maximum availability and partition tolerance, but no
// consistency between different shards or even clients. Each client // consistency between different shards or even clients. Each client

View File

@ -56,7 +56,7 @@ var _ = Describe("Redis ring", func() {
// Ring needs 5 * heartbeat time to detect that node is down. // Ring needs 5 * heartbeat time to detect that node is down.
// Give it more to be sure. // Give it more to be sure.
heartbeat := 100 * time.Millisecond heartbeat := 100 * time.Millisecond
time.Sleep(5*heartbeat + heartbeat) time.Sleep(5*heartbeat + 2*heartbeat)
setRingKeys() setRingKeys()