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

Make tests less flaky.

This commit is contained in:
Vladimir Mihailenco
2013-12-30 14:24:43 +02:00
parent 09e549f44e
commit 10d639d255
2 changed files with 23 additions and 22 deletions

View File

@ -174,9 +174,6 @@ func (cmd *DurationCmd) parseReply(rd reader) (interface{}, error) {
return 0, err
}
vv := time.Duration(v.(int64))
if vv == -1 {
return vv, nil
}
return vv * cmd.precision, nil
}