1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-28 06:42:00 +03:00

Fix benchmarks to use Redis on default port and FLUSHDB before run.

This commit is contained in:
Vladimir Mihailenco
2015-07-18 11:22:42 +03:00
parent 2e21f6b3e7
commit ba4682c2a3
3 changed files with 26 additions and 35 deletions

View File

@ -182,11 +182,9 @@ var _ = Describe("Pool", func() {
})
func BenchmarkPool(b *testing.B) {
client := redis.NewClient(&redis.Options{
Addr: redisAddr,
IdleTimeout: 100 * time.Millisecond,
})
client := benchRedisClient()
defer client.Close()
pool := client.Pool()
b.ResetTimer()