summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Sentinel: test command renaming feature.antirez2018-06-261-0/+10
|
* fix typoshenlongxing2018-06-211-1/+1
|
* Enhance RESTORE with RDBv9 new featuresGuy Benoish2018-06-201-0/+33
| | | | | | | | | | | | RESTORE now supports: 1. Setting LRU/LFU 2. Absolute-time TTL Other related changes: 1. RDB loading will not override LRU bits when RDB file does not contain the LRU opcode. 2. RDB loading will not set LRU/LFU bits if the server's maxmemory-policy does not match.
* Test RDB stream encoding saving/loading.antirez2018-06-191-0/+17
|
* Fix SCAN bug regression test, avoiding empty SREM call.antirez2018-06-141-1/+1
|
* Regression test for issue #5006.antirez2018-06-121-0/+16
|
* Improved regression test for #4906.antirez2018-06-111-29/+37
| | | | | | | Removing the fix about 50% of the times the test will not be able to pass cleanly. It's very hard to write a test that will always fail, or actually, it is possible but then it's likely that it will consistently pass if we change some random bit, so better to use randomization here.
* Regression test for the dictScan() issue #4906.antirez2018-06-111-0/+38
|
* ZPOP: invert score-ele to match ZRANGE WITHSCORES order.antirez2018-06-051-25/+25
|
* Streams: fix test ID format.antirez2018-05-251-4/+4
|
* Make active defragmentation tests optional.antirez2018-05-241-54/+62
| | | | | They failed when active defrag could not be activated because the Jemalloc version does not include the additional APIs.
* Merge branch 'unstable' of github.com:/antirez/redis into unstableantirez2018-05-171-4/+6
|\
| * Merge pull request #4927 from oranagra/defrag_32bit_fixSalvatore Sanfilippo2018-05-171-4/+6
| |\ | | | | | | Active defrag fixes for 32bit builds
| | * Active defrag fixes for 32bit buildsOran Agra2018-05-171-4/+6
| | | | | | | | | | | | | | | | | | | | | problems fixed: * failing to read fragmentation information from jemalloc * overflow in jemalloc fragmentation hint to the defragger * test suite not triggering eviction after population
* | | Merge remote-tracking branch 'artix/trib2cli' into unstableantirez2018-05-172-12/+12
|\ \ \ | |/ / |/| |
| * | Cluster tests now using redis-cli instead of redis-tribartix2018-04-232-12/+12
| | |
* | | Test: fix blocking lists/zsets replication test.antirez2018-05-152-5/+6
| | | | | | | | | | | | | | | By verifying that it was able to find a regression, and fixing it accordingly.
* | | Test: replication test blocking lists/zsets ops.antirez2018-05-153-0/+110
| |/ |/|
* | ZPOP: fix the tests according to new non-blocking "count" argument.zpopantirez2018-05-111-15/+11
| |
* | ZPOP: renaming to have explicit MIN/MAX score idea.antirez2018-05-111-42/+42
| | | | | | | | | | This commit also adds a top comment about a subtle behavior of mixing blocking operations of different types in the same key.
* | Implements [B]Z[REV]POP and the respective unit testsItamar Haber2018-04-301-0/+158
|/ | | | | | | | An implementation of the [Ze POP Redis Module](https://github.com/itamarhaber/zpop) as core Redis commands. Fixes #1861.
* AOF: run tests with preamble off when it makes sense.antirez2018-03-254-3/+6
|
* Merge pull request #4691 from oranagra/active_defrag_v2Salvatore Sanfilippo2018-03-222-40/+148
|\ | | | | Active defrag v2
| * Adding real allocator fragmentation to INFO and MEMORY command + active ↵Oran Agra2018-03-122-40/+148
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | defrag test other fixes / improvements: - LUA script memory isn't taken from zmalloc (taken from libc malloc) so it can cause high fragmentation ratio to be displayed (which is false) - there was a problem with "fragmentation" info being calculated from RSS and used_memory sampled at different times (now sampling them together) other details: - adding a few more allocator info fields to INFO and MEMORY commands - improve defrag test to measure defrag latency of big keys - increasing the accuracy of the defrag test (by looking at real grag info) this way we can use an even lower threshold and still avoid false positives - keep the old (total) "fragmentation" field unchanged, but add new ones for spcific things - add these the MEMORY DOCTOR command - deduct LUA memory from the rss in case of non jemalloc allocator (one for which we don't "allocator active/used") - reduce sampling rate of the rss and allocator info
* | CG: test XACK remaining features.antirez2018-03-151-0/+10
| |
* | CG: test XACK ability to remove items from the PELs.antirez2018-03-151-0/+13
| |
* | CG: test XPENDING ability to return pending items.antirez2018-03-151-0/+20
| |
* | CG: test XGROUPREAD abilities.antirez2018-03-151-0/+30
| |
* | CG: test group creation.antirez2018-03-151-0/+1
| |
* | CG: More specific duplicated group error.antirez2018-03-151-0/+11
| |
* | Cluster: add test for the nofailover flag.antirez2018-03-142-0/+71
|/
* Fix integration test NOREPLICAS error time dependent false positive.antirez2018-01-241-3/+6
|
* Test: MIGRATE AUTH test added.antirez2018-01-091-0/+24
| | | | Related to #2507.
* Regression test for #4505 (Lua AUX field loading).antirez2017-12-041-1/+22
|
* Streams: add some initial test for XREVRANGE.antirez2017-12-011-0/+8
|
* Streams: fix XREAD test broken after previous tests improvements.antirez2017-12-011-1/+1
| | | | | | 10% of times the data is not just "item 0" but there is also the "otherfield" part. Use [lrange] to avoid the issue. This commit fixes #4416.
* Streams: move ID ms/seq separator from '.' to '-'antirez2017-12-011-7/+7
| | | | | | | | | | | | | | | | | | | | | | After checking with the community via Twitter (here: https://twitter.com/antirez/status/915130876861788161) the verdict was to use ":". However I later realized, after users lamented the fact that it's hard to copy IDs just with double click, that this was the reason why I moved to "." in the first instance. Fortunately "-", that was the other option with most votes, also gets selected with double click on most terminal applications on Linux and MacOS. So my reasoning was: 1) We can't retain "." because it's actually confusing to newcomers, it looks like a floating number, people may be tricked into thinking they can order IDs numerically as floats. 2) Moving to a double-click-to-select format is much better. People will work with such IDs for long time when coding / debugging. Why making now a choice that will impact this for the next years? The only other viable option was "-", and that's what I did. Thanks.
* Streams: add XADD + MAXLEN test.antirez2017-12-011-0/+17
|
* Streams: modify tests to stress compression.antirez2017-12-011-5/+10
|
* Streams: tests for blocking and non-blocking XREAD.antirez2017-12-011-0/+90
|
* Streams: XRANGE fuzz testing.antirez2017-12-011-1/+52
|
* Streams: more advanced XADD and XRANGE tests.antirez2017-12-011-0/+43
|
* Streams: basic XADD tests.antirez2017-12-012-0/+43
|
* Regression test: Slave restart with EVALSHA in backlog issue #4483.antirez2017-11-301-1/+64
|
* Merge pull request #4215 from lamby/correct-faield-spellingSalvatore Sanfilippo2017-11-281-1/+1
|\ | | | | Correct spelling of "faield".
| * Correct spelling of "faield".Chris Lamb2017-08-121-1/+1
| |
* | Test: regression test for latency expire events logging bug.antirez2017-11-241-0/+14
| | | | | | | | Regression for #4452.
* | fix string to double conversion, stopped parsing on \0 even if the string ↵Oran Agra2017-11-231-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | has more data. getLongLongFromObject calls string2ll which has this line: /* Return if not all bytes were used. */ so if you pass an sds with 3 characters "1\01" it will fail. but getLongDoubleFromObject calls strtold, and considers it ok if eptr[0]==`\0` i.e. if the end of the string found by strtold ends with null terminator 127.0.0.1:6379> set a 1 OK 127.0.0.1:6379> setrange a 2 2 (integer) 3 127.0.0.1:6379> get a "1\x002" 127.0.0.1:6379> incrbyfloat a 2 "3" 127.0.0.1:6379> get a "3"
* | Regression test for issue #4391.antirez2017-10-301-0/+4
|/
* Fix GEORADIUS edge case with huge radius.antirez2017-07-031-0/+3
| | | | | | | | | | | | | | | | | | | This commit closes issue #3698, at least for now, since the root cause was not fixed: the bounding box function, for huge radiuses, does not return a correct bounding box, there are points still within the radius that are left outside. So when using GEORADIUS queries with radiuses in the order of 5000 km or more, it was possible to see, at the edge of the area, certain points not correctly reported. Because the bounding box for now was used just as an optimization, and such huge radiuses are not common, for now the optimization is just switched off when the radius is near such magnitude. Three test cases found by the Continuous Integration test were added, so that we can easily trigger the bug again, both for regression testing and in order to properly fix it as some point in the future.