mirror of
https://gitee.com/johng/gf.git
synced 2024-11-30 19:27:46 +08:00
fix issue in unit test case of gredis
This commit is contained in:
parent
c0b46f364a
commit
08ec04d8b6
@ -71,7 +71,7 @@ func Test_Stats(t *testing.T) {
|
||||
redis.SetIdleTimeout(500*time.Millisecond)
|
||||
redis.SetMaxConnLifetime(500*time.Millisecond)
|
||||
|
||||
array := make([]gredis.Conn, 0)
|
||||
array := make([]*gredis.Conn, 0)
|
||||
for i := 0; i < 10; i++ {
|
||||
array = append(array, redis.Conn())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user