This is an automated email from the ASF dual-hosted git repository. hulk pushed a commit to annotated tag v2.1.0-rc1 in repository https://gitbox.apache.org/repos/asf/incubator-kvrocks.git
commit 05b3a2b86ec6ea66a046e970755172e7702ce9f4 Author: hulk <[email protected]> AuthorDate: Fri Jul 22 00:01:51 2022 +0800 Fix occasionally failed in test/unit/expire.tcl (#743) * Fix occasionally failed in test/unit/expire.tcl * Fix occasionally failed in undo an EXPIRE --- tests/tcl/tests/unit/expire.tcl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/tcl/tests/unit/expire.tcl b/tests/tcl/tests/unit/expire.tcl index 88d884f..c788a0e 100644 --- a/tests/tcl/tests/unit/expire.tcl +++ b/tests/tcl/tests/unit/expire.tcl @@ -56,7 +56,7 @@ start_server {tags {"expire"}} { r set x foo r expireat x [expr [clock seconds]+15] r ttl x - } {1[345]} + } {1[3456]} test {SETEX - Set + Expire combo operation. Check for TTL} { r setex x 12 test @@ -86,9 +86,9 @@ start_server {tags {"expire"}} { test {PERSIST can undo an EXPIRE} { r set x foo - r expire x 50 + r expire x 12 list [r ttl x] [r persist x] [r ttl x] [r get x] - } {50 1 -1 foo} + } {1[012] 1 -1 foo} test {PERSIST returns 0 against non existing or non volatile keys} { r set x foo
