226 Commits

Author SHA1 Message Date
antirez
61cf87d7e3 A few SORT tests made more resistant to false negatives resulitng from poor randomization of Redis hash function with one byte inputs. 2012-02-01 17:37:48 +01:00
antirez
2b9f125601 New SORT tests checking the new more deterministic behavior of SORT sorting algorithm. 2012-02-01 17:17:52 +01:00
antirez
d26bae3ce9 Make SORT BY <constant> STORE ... to always produce the same output by force sorting, so that we have deterministic replication of this command. 2012-02-01 17:05:45 +01:00
antirez
4a6e6ac8e6 SORT is now more deterministic: does not accept to compare by score items that have scores not representing a valid double. Also items with the same score are compared lexycographically. At the same time the scripting side introduced the ability to sort the output of SORT when sort uses the BY <constant> optimization, resulting in no specific ordering. Since in this case the user may use GET, and the result of GET can be null, converted into false as Lua data type, this commit also introduces the ability to sort Lua tables containining false, only if the first (faster) attempt at using just table.sort with a single argument fails. 2012-02-01 15:22:28 +01:00
antirez
eeb8c0a5f5 minimal change to obuf-limits.tcl test to make sure there are no false positives with 32bit instances as well. 2012-01-30 21:08:10 +01:00
Michal Kwiatkowski
03bbd4468a SORT with STORE removes key if result is empty. This fixes issue #227. 2012-01-30 07:36:49 +01:00
antirez
6ff5d74b5a false positive in expire tests mitigated with a sleep, but other solutions exist if needed later. 2012-01-26 16:45:08 +01:00
antirez
3638a60058 Less false positives for obuf-limits.tcl tests 2012-01-26 16:08:24 +01:00
antirez
e28a9ac80d Added test for client output buffer limit (soft limit). 2012-01-25 18:34:56 +01:00
antirez
fc001ea069 Added test for client output buffer limit (hard limit). 2012-01-25 18:11:04 +01:00
antirez
d64a700b36 CLIENT LIST test fixed (there is a new omem field in the output) 2012-01-23 16:19:49 +01:00
antirez
fc8f1156d0 Regression tests for protocol desync bug related to Issue #141 2012-01-06 12:54:29 +01:00
Pieter Noordhuis
ae204e5428 Encode small hashes with a ziplist 2012-01-02 22:14:10 -08:00
antirez
d000c35b60 Added regression test for ZUNIONSTORE creating NaN (github issue #264) 2011-12-23 09:34:06 +01:00
antirez
af11e1bf82 Merge remote-tracking branch 'origin/unstable' into unstable 2011-12-21 17:13:31 +01:00
antirez
1c5d07a335 A test modified to pass with the new AOF start/stop semantics. 2011-12-21 09:24:14 +01:00
BigCat
642c3a637b I found that no test will fail even if I broke the SORT x LIMIT y z code.
Added a naive unit test for SORT-LIMIT command.
2011-12-19 19:49:34 +08:00
antirez
73cb81d541 unit/introspection.tcl added 2011-12-19 10:21:50 +01:00
antirez
edeadf517f Added tests for AOF rewrite. 2011-12-13 11:10:36 +01:00
antirez
3eef6cf668 EXPIRE tests more tolerant to random latency while the test is running. 2011-12-07 12:44:27 +01:00
antirez
418759f125 Fixed SORT bugs (issue #224) with regression tests. 2011-12-01 16:08:05 +01:00
antirez
5898fab11d Added regression tests for issue #209 2011-11-25 12:27:29 +01:00
antirez
26d2ed1ce4 more valgrind (and other archs) friendly testing of floating number related features. 2011-11-16 14:40:50 +01:00
antirez
85056993ed valgrind handles floating point numbers differently for some reason, so using "simpler" numbers to make tests happy. 2011-11-16 13:35:22 +01:00
antirez
0321c79b42 HINCRBYFLOAT tests 2011-11-15 15:26:10 +01:00
antirez
8a9c8b9e64 Merge branch 'unstable' into incrbyfloat 2011-11-14 15:59:56 +01:00
antirez
3d4825324c test for the new more strict behavior about number parsing 2011-11-14 15:39:55 +01:00
antirez
3752894b44 INCRBYFLOAT tests 2011-11-14 15:37:13 +01:00
antirez
33dcbd6df7 string to number API is now more strict not accepting spaces before or after the number. A few tests converted to match the new error messages using the word float instead of double. 2011-11-14 15:34:44 +01:00
antirez
b2f4d3e1c9 Added test to make sure Redis evicts expired keys actively (and not just in a lazy fashion). 2011-11-12 11:27:38 +01:00
antirez
d1c1a9a83f new tests for EXPIRE family functions, new millisecond precision, and new millisecond argument variants. 2011-11-11 15:11:50 +01:00
antirez
0bf9019d5b Script max execution time test disabled for now since it is no longer enforced. 2011-10-31 16:09:07 +01:00
antirez
efd6ecaa17 SCRIPT LOAD now returns the SHA1 instead of +OK 2011-10-25 14:46:15 +02:00
antirez
4ed00fae19 Fixes for the scripting refactoring and new commands. Tests for the new features. 2011-10-25 11:19:15 +02:00
antirez
7a34a833a7 Redis.call is now split into two variants of the same function. Redis.call will raise an error by default. Redis.pcall will return the error object instead. 2011-10-20 16:02:23 +02:00
antirez
e34ae21da7 Fix for issue #132. Now AUTH raises an error if no server password is configured. 2011-10-10 22:21:17 +02:00
antirez
c2e00623f5 Added two new tests for RENAME, currently both will fail because of bug #128. 2011-10-10 12:01:13 +02:00
antirez
7dcafc2bd5 new tests for the scripting engine: not allowed commands and write commands after random commands. 2011-09-27 15:39:41 +02:00
antirez
e9dee96c29 regression test for bug 593 added 2011-09-12 10:53:49 +02:00
antirez
b2c7f001c1 Merge remote-tracking branch 'origin/unstable' into unstable 2011-07-28 14:40:47 +02:00
antirez
a045c49433 Regression for a crash with blocking ops and pipelining 2011-07-28 14:40:06 +02:00
antirez
95c94d7249 Merge remote branch 'origin/unstable' into unstable 2011-07-28 12:33:17 +02:00
antirez
e7c4b3e835 Maxmemory test 2011-07-28 12:32:52 +02:00
Pieter Noordhuis
49fd303a6b HDEL: Abort deleting fields when hash is removed 2011-07-27 12:29:40 +02:00
antirez
c18bc7fce6 make a scripting test more valgrind friendly 2011-07-15 18:28:24 +02:00
antirez
7be726880e test that EVALSHA is replicated as EVAL 2011-07-15 17:41:40 +02:00
antirez
335b27ecd0 master branch merged into scripting. 2011-07-12 12:39:16 +02:00
antirez
01ba60d5d2 solved a slow positive in the slow log test when the test is executed slowly 2011-07-11 16:04:18 +02:00
antirez
439d8b943b fixed another timing issue when running the test over valgrind or with very slow PCs 2011-07-11 15:58:31 +02:00
antirez
02d67a4fbc fix a test timing issue when running the test over valgrind 2011-07-11 15:44:38 +02:00