summaryrefslogtreecommitdiff
path: root/tests/unit/expire.tcl
diff options
context:
space:
mode:
authorBinbin <binloveplay1314@qq.com>2023-02-09 13:57:19 +0800
committerGitHub <noreply@github.com>2023-02-09 07:57:19 +0200
commit66bed3f220d3ae73449b6b9f89ae616e42eff2e4 (patch)
treef20e7162ad88abc90848e495307fd84c31e26fa1 /tests/unit/expire.tcl
parentf3c6f9c2f44a7baf14de0f98b2b89c5c6c2781ba (diff)
downloadredis-66bed3f220d3ae73449b6b9f89ae616e42eff2e4.tar.gz
When DEBUG LOADAOF fails, return an error instead of exiting (#11790)
Return an error when loadAppendOnlyFiles fails instead of exiting. DEBUF LOADAOF command is only meant to be used by the test suite, and only by tests that generated an AOF file first. So this change is ok (considering that the caller is likely to catch this error and die). This actually revert part of the code in #9012, and now DEBUG LOADAOF behaves the same as DEBUG RELOAD (returns an error when the load fails). Plus remove a `after 2000` in a test, which can save times (looks like copy paste error).
Diffstat (limited to 'tests/unit/expire.tcl')
-rw-r--r--tests/unit/expire.tcl2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/expire.tcl b/tests/unit/expire.tcl
index 62ade68f5..2b0fc22e9 100644
--- a/tests/unit/expire.tcl
+++ b/tests/unit/expire.tcl
@@ -603,9 +603,9 @@ start_server {tags {"expire"}} {
} {-1}
test {GETEX use of PERSIST option should remove TTL after loadaof} {
+ r config set appendonly yes
r set foo bar EX 100
r getex foo PERSIST
- after 2000
r debug loadaof
r ttl foo
} {-1} {needs:debug}