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

add tests

This commit is contained in:
Nedyalko Dyakov
2025-04-22 15:35:57 +03:00
parent e0c224ddb4
commit 44628c5dbd
7 changed files with 619 additions and 28 deletions

View File

@ -89,6 +89,9 @@ func (s *clusterScenario) newClusterClient(
func (s *clusterScenario) Close() error {
ctx := context.TODO()
for _, master := range s.masters() {
if master == nil {
continue
}
err := master.FlushAll(ctx).Err()
if err != nil {
return err