Skip to content

Commit 42b2a72

Browse files
committed
fix unit test errors that may appear in pool_test.go
/redis/pool_test.go:119 Expected: <uint32>: 98 to equal: <uint32>: 99 Signed-off-by: monkey <[email protected]>
1 parent f4ae0ba commit 42b2a72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pool_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var _ = Describe("pool", func() {
1717
opt := redisOptions()
1818
opt.MinIdleConns = 0
1919
opt.MaxConnAge = 0
20-
opt.IdleTimeout = time.Second
20+
opt.IdleTimeout = 2 * time.Second
2121
client = redis.NewClient(opt)
2222
})
2323

@@ -135,7 +135,7 @@ var _ = Describe("pool", func() {
135135
StaleConns: 0,
136136
}))
137137

138-
time.Sleep(2 * time.Second)
138+
time.Sleep(3 * time.Second)
139139

140140
stats = client.PoolStats()
141141
Expect(stats).To(Equal(&redis.PoolStats{

0 commit comments

Comments
 (0)