summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Multiple GEORADIUS bugs fixed.antirez2016-07-271-2/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By grepping the continuous integration errors log a number of GEORADIUS tests failures were detected. Fortunately when a GEORADIUS failure happens, the test suite logs enough information in order to reproduce the problem: the PRNG seed, coordinates and radius of the query. By reproducing the issues, three different bugs were discovered and fixed in this commit. This commit also improves the already good reporting of the fuzzer and adds the failure vectors as regression tests. The issues found: 1. We need larger squares around the poles in order to cover the area requested by the user. There were already checks in order to use a smaller step (larger squares) but the limit set (+/- 67 degrees) is not enough in certain edge cases, so 66 is used now. 2. Even near the equator, when the search area center is very near the edge of the square, the north, south, west or ovest square may not be able to fully cover the specified radius. Now a test is performed at the edge of the initial guessed search area, and larger squares are used in case the test fails. 3. Because of rounding errors between Redis and Tcl, sometimes the test signaled false positives. This is now addressed. Whenever possible the original code was improved a bit in other ways. A debugging example stanza was added in order to make the next debugging session simpler when the next bug is found.
* Sentinel: new test unit 07 that tests master down conditions.antirez2016-07-221-0/+68
|
* Sentinel: check Slave INFO state more often when disconnected.antirez2016-07-221-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | During the initial handshake with the master a slave will report to have a very high disconnection time from its master (since technically it was disconnected since forever, so the current UNIX time in seconds is reported). However when the slave is connected again the Sentinel may re-scan the INFO output again only after 10 seconds, which is a long time. During this time Sentinels will consider this instance unable to failover, so a useless delay is introduced. Actaully this hardly happened in the practice because when a slave's master is down, the INFO period for slaves changes to 1 second. However when a manual failover is attempted immediately after adding slaves (like in the case of the Sentinel unit test), this problem may happen. This commit changes the INFO period to 1 second even in the case the slave's master is not down, but the slave reported to be disconnected from the master (by publishing, last time we checked, a master disconnection time field in INFO). This change is required as a result of an unrelated change in the replication code that adds a small delay in the master-slave first synchronization.
* Regression test for issue #3333.antirez2016-07-061-0/+6
|
* Fix test for new RDB checksum failure message.antirez2016-07-041-1/+1
|
* Test: new randomized stress tester for #3343 alike bugs.antirez2016-06-281-2/+27
|
* Stress tester WIP.antirez2016-06-281-0/+3
|
* Regression test for issue #3343 exact min crash sequence.antirez2016-06-281-0/+16
| | | | | Note: it was verified that it can crash the test suite without the patch applied.
* Test TOUCH and new TTL / TYPE behavior about object access time.antirez2016-06-152-0/+24
|
* Regression test for #3282.antirez2016-06-151-0/+10
|
* make RPUSHX and LPUSHX variadicPierre Chapuis2016-06-051-1/+3
|
* Test: run GEO tests by default.antirez2016-05-311-0/+1
| | | | Thanks to @oranagra for noticing it was missing.
* Now that SPOP can be called by scripts use BLPOP on 's' flag test.antirez2016-05-311-1/+1
|
* Test for BITFIELD regression #3221.antirez2016-05-181-0/+5
|
* Scripting test: match new error message.antirez2016-05-061-1/+1
|
* Cluster test 12: reshard back just a few slots to speedup the test.antirez2016-05-051-7/+7
|
* Quick fix to avoid false positive in replica migration test.antirez2016-05-051-1/+4
|
* Merge pull request #3191 from oranagra/minor_fixSalvatore Sanfilippo2016-05-044-20/+16
|\ | | | | Minor fixes found during merge and code review
| * various cleanups and minor fixesOran Agra2016-04-254-20/+16
| |
* | Cluster regression test for #3043.antirez2016-05-021-0/+61
|/ | | | | | The test works but is very slow so far, since it involves resharding 1/5 of all the cluster slots from master 0 to the other 4 masters and back into the original master.
* Fix ZINCRBY return value.Damian Janowski2016-04-181-0/+6
|
* BITFIELD: overflow wrap behavior fuzz tester.antirez2016-03-021-0/+51
|
* BITFIELD basic unit tests.antirez2016-03-021-1/+85
|
* BITFIELD: overflow fuzzy testing.antirez2016-03-022-0/+53
|
* Fix typo in bitops.tcl comment.antirez2016-03-021-1/+1
|
* GEOADD STORE/STOREDIST tests.antirez2016-02-181-0/+54
|
* Cluster: resharding test provides more state when failing.antirez2016-02-171-3/+8
| | | | | | | Now elements added to lists are incremental numbers in order to understand, when inconsistencies are found, what is the order in which the elements were added. Also the error now provides both the expected and found value.
* Fix to Cluster test to support @busport format.antirez2016-02-021-2/+4
|
* Merge branch 'unstable' of github.com:/antirez/redis into unstableantirez2016-01-151-3/+4
|\
| * Merge pull request #2726 from seppo0010/patch-2Salvatore Sanfilippo2016-01-151-3/+4
| |\ | | | | | | Fix race condition in unit/introspection
| | * Fix race condition in unit/introspectionSebastian Waisbrot2015-08-111-3/+4
| | | | | | | | | Make sure monitor is attached in one connection before issuing commands to be monitored in another one
* | | Test: Handle LOADING in restart_instance.antirez2016-01-151-0/+12
|/ /
* | Detect and show crashes on Sentinel/Cluster tests.antirez2016-01-151-0/+18
| |
* | Scripting: handle trailing comments.antirez2016-01-081-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fix, provided by Paul Kulchenko (@pkulchenko), allows the Lua scripting engine to evaluate statements with a trailing comment like the following one: EVAL "print() --comment" 0 Lua can't parse the above if the string does not end with a newline, so now a final newline is always added automatically. This does not change the SHA1 of scripts since the SHA1 is computed on the body we pass to EVAL, without the other code we add to register the function. Close #2951.
* | Cluster test: do leaks detection with OSX leaks utility.antirez2016-01-021-0/+32
| |
* | Cluster/Sentinel test: report ability to run via valgrind.antirez2015-12-291-0/+1
| |
* | Cluster: verify slaves consistency after resharding.antirez2015-12-181-0/+23
| |
* | Cluster: resharding test now checks AOF consistency.antirez2015-12-171-0/+42
| | | | | | | | | | | | It's a key invariant that when AOF is enabled, after the cluster reshards, a crash-recovery event causes all the keys to be still fine with the expected logical content. Now this is part of unit 04.
* | MIGRATE: test more corner cases.antirez2015-12-111-0/+37
| |
* | Test: pipelined MIGRATE tests added.antirez2015-12-111-0/+54
| |
* | Cluster: more reliable migration tests.antirez2015-12-101-43/+24
| | | | | | | | | | | | | | | | The old version was modeled with two failovers, however after the first it is possible that another slave will migrate to the new master, since for some time the new master is not backed by any slave. Probably there should be some pause after a failover, before the migration. Anyway the test is simpler in this way, and depends less on timing.
* | Cluster: more reliable replicas migration test.antirez2015-12-101-0/+75
| |
* | Test HINCRBYFLOAT rounding only in x86_64 and when valgrind is not in use.antirez2015-11-281-5/+16
| | | | | | | | | | | | | | 64 bit double math is not enough to make the test passing, and rounding to 1.2999999 instead of 1.23 is not an error in the implementation. Valgrind and sometimes other archs are not able to work with 80 bit doubles.
* | Add regression test for HINCRBYFLOAT formatting change.antirez2015-11-041-0/+7
| | | | | | | | | | | | | | This test was kindly provided by Jan-Erik Rediger (@badboy here on Github) that discovered the issue. See issue #2846.
* | Test: improve PFCOUNT with multiple keys testing.antirez2015-11-031-2/+17
| | | | | | | | | | | | An user raised a question about a given behavior of PFCOUNT. Added a test to show the behavior (union) is correct when most of the items are in common.
* | Scripting: commands replication tests.antirez2015-10-301-1/+107
| |
* | Scripting: execute tests with command replication as well.antirez2015-10-301-79/+88
| |
* | Scripting: test Redis provided Lua functions error reporting.antirez2015-10-301-0/+9
| |
* | Regression test for issue #2813.antirez2015-10-151-0/+53
| |
* | Test: basic lazyfree unit test.antirez2015-10-092-0/+40
| |