1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-29 17:41:15 +03:00

chore: always retry write timeouts

This commit is contained in:
Vladimir Mihailenco
2022-10-06 10:06:02 +03:00
parent 6725851465
commit b0231c659e
4 changed files with 5 additions and 9 deletions

View File

@ -2,7 +2,6 @@ package redis_test
import (
"context"
"errors"
"fmt"
"net"
"os"
@ -269,7 +268,7 @@ func (p *redisProcess) Close() error {
if err := p.Client.Ping(ctx).Err(); err != nil {
return nil
}
return errors.New("client is not shutdown")
return fmt.Errorf("client %s is not shutdown", p.Options().Addr)
}, 10*time.Second)
if err != nil {
return err