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:
@ -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()
|
||||
|
Reference in New Issue
Block a user