diff options
author | Loris Cro <kappaloris@gmail.com> | 2019-11-04 16:36:06 +0100 |
---|---|---|
committer | Loris Cro <kappaloris@gmail.com> | 2019-11-04 16:36:06 +0100 |
commit | b12d2f65d660b4139b322af90b6ef60ed267210b (patch) | |
tree | 1742511b99888427eac8d03d7404daa3180b0449 /tests | |
parent | 3f14bfd809e1aba63ec3ffc852ca7b169f993aff (diff) | |
download | redis-b12d2f65d660b4139b322af90b6ef60ed267210b.tar.gz |
fix unreported overflow in autogerenared stream IDs
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/type/stream.tcl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit/type/stream.tcl b/tests/unit/type/stream.tcl index a7415ae8d..aa9c5f3a9 100644 --- a/tests/unit/type/stream.tcl +++ b/tests/unit/type/stream.tcl @@ -79,6 +79,12 @@ start_server { assert {[streamCompareID $id2 $id3] == -1} } + test {XADD IDs correctly report an error when overflowing} { + r DEL mystream + r xadd mystream 18446744073709551615-18446744073709551615 a b + assert_error ERR* {r xadd mystream * c d} + } + test {XADD with MAXLEN option} { r DEL mystream for {set j 0} {$j < 1000} {incr j} { |