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

test: add TestRingShardsCleanup

This commit is contained in:
Alexander Yastrebov
2022-11-22 23:46:03 +01:00
parent 6c05a9f6b1
commit 7c6f677890
2 changed files with 119 additions and 0 deletions

View File

@ -772,6 +772,7 @@ func TestRingSetAddrsContention(t *testing.T) {
return redis.NewClient(opt)
},
})
defer ring.Close()
if _, err := ring.Ping(context.Background()).Result(); err != nil {
t.Fatal(err)