Fix timing issue in HEXPIREAT test (#13873)
CI / build-macos-latest (push) Waiting to run Details
CI / build-debian-old (push) Failing after 7s Details
CI / build-centos-jemalloc (push) Failing after 3s Details
CI / build-old-chain-jemalloc (push) Failing after 3s Details
CI / build-32bit (push) Failing after 21s Details
Codecov / code-coverage (push) Failing after 8s Details
CI / build-libc-malloc (push) Successful in 50s Details
CI / test-ubuntu-latest (push) Failing after 2m9s Details
CI / test-sanitizer-address (push) Failing after 2m40s Details
Spellcheck / Spellcheck (push) Successful in 9m2s Details
External Server Tests / test-external-standalone (push) Failing after 32s Details
External Server Tests / test-external-cluster (push) Failing after 32s Details
Coverity Scan / coverity (push) Has been skipped Details
External Server Tests / test-external-nodebug (push) Failing after 31s Details

This fixes an error that occurs in the job
[test-valgrind-no-malloc-usable-size-test](https://github.com/redis/redis/actions/runs/13912357739/job/38929051397)
of the Daily workflow:

```
*** [err]: HEXPIREAT - Set time and then get TTL (listpackex) in tests/unit/type/hash-field-expire.tcl
Expected '999' to be between to '1000' and '2000' (context: type eval line 6 cmd {assert_range [r hpttl myhash FIELDS 1 field1] 1000 2000} proc ::test)
```
This commit is contained in:
Cong Chen 2025-03-26 10:00:38 +08:00 committed by GitHub
parent 2a189709e0
commit 981aa5c12f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -325,7 +325,7 @@ start_server {tags {"external:skip needs:debug"}} {
r hset myhash field1 value1
r hexpireat myhash [expr {[clock seconds] + 2}] NX FIELDS 1 field1
assert_range [r hpttl myhash FIELDS 1 field1] 1000 2000
assert_range [r hpttl myhash FIELDS 1 field1] 500 2000
assert_range [r httl myhash FIELDS 1 field1] 1 2
r hexpireat myhash [expr {[clock seconds] + 5}] XX FIELDS 1 field1