This is an automated email from the ASF dual-hosted git repository.
tison pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/incubator-kvrocks.git
The following commit(s) were added to refs/heads/unstable by this push:
new 1fd312c Fix occasionally failed in test/unit/expire.tcl (#743)
1fd312c is described below
commit 1fd312c183371cd93ddc32087d0113aaaf5ee9d3
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