Skip to content

Commit

Permalink
[hotfix] exec 'setex key -1000 value' returns error
Browse files Browse the repository at this point in the history
  • Loading branch information
qiongtubao authored and gd.zhou committed Mar 28, 2024
1 parent d7b3ff5 commit 250f0e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Binary file modified tests/assets/linux/crdt.so
Binary file not shown.
5 changes: 5 additions & 0 deletions tests/ctrip/unit/string.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,11 @@ start_server {tags {"string"} config {crdt.conf} overrides {crdt-gid 1 repl-disk
assert {$ttl <= 10 && $ttl > 5}
}

test {"setex time error"} {
catch { r setex key -1000 value } error
set _ $error
} {*ERR invalid expire time in set*}

# test {GETRANGE with huge ranges, Github issue #1844} {
# r set foo bar
# r getrange foo 0 4294967297
Expand Down

0 comments on commit 250f0e5

Please sign in to comment.