redict/tests/unit
antirez 356a6304ec Multiple GEORADIUS bugs fixed.
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.
2016-07-27 11:34:25 +02:00
..
type Test: new randomized stress tester for #3343 alike bugs. 2016-06-28 09:42:20 +02:00
aofrw.tcl Add quicklist implementation 2015-01-02 11:16:08 -05:00
auth.tcl Remove trailing spaces from tests 2014-09-29 06:49:08 -04:00
bitfield.tcl Test for BITFIELD regression #3221. 2016-05-18 14:53:30 +02:00
bitops.tcl Regression test for #3282. 2016-06-15 11:49:49 +02:00
dump.tcl MIGRATE: test more corner cases. 2015-12-11 14:27:08 +01:00
expire.tcl Regression test for issue #3333. 2016-07-06 11:50:20 +02:00
geo.tcl Multiple GEORADIUS bugs fixed. 2016-07-27 11:34:25 +02:00
hyperloglog.tcl Test: improve PFCOUNT with multiple keys testing. 2015-11-03 19:03:17 +01:00
introspection-2.tcl Test TOUCH and new TTL / TYPE behavior about object access time. 2016-06-15 17:15:51 +02:00
introspection.tcl Fix race condition in unit/introspection 2015-08-11 22:56:17 -07:00
keyspace.tcl Test: MOVE expire test improved. 2015-09-14 12:35:55 +02:00
latency-monitor.tcl LATENCY command / monitor basic tests. 2014-07-10 16:23:54 +02:00
lazyfree.tcl Test: basic lazyfree unit test. 2015-10-09 09:47:17 +02:00
limits.tcl More robust maxclients test. 2012-04-18 11:34:18 +02:00
maxmemory.tcl Remove trailing spaces from tests 2014-09-29 06:49:08 -04:00
memefficiency.tcl Faster memory efficiency test. 2015-02-10 14:47:45 +01:00
multi.tcl Test: test replication of MULTI/EXEC. 2013-03-27 11:44:50 +01:00
obuf-limits.tcl Test: obuf-limits test false positive removed. 2013-03-25 11:56:34 +01:00
other.tcl various cleanups and minor fixes 2016-04-25 16:49:57 +03:00
printver.tcl Print version info before running the test 2011-05-20 11:44:54 +02:00
protocol.tcl Return proper error on requests with an unbalanced number of quotes. 2013-12-08 12:58:12 +02:00
pubsub.tcl pubsub: Return integers for NUMSUB, not strings 2014-08-08 11:19:37 +02:00
quit.tcl Add tests for OK on QUIT 2010-10-15 12:54:53 +02:00
scan.tcl Regression test for issue #2175. 2014-12-03 10:38:56 +01:00
scripting.tcl Now that SPOP can be called by scripts use BLPOP on 's' flag test. 2016-05-31 16:43:23 +02:00
slowlog.tcl Slowlog: don't log EXEC but just the executed commands. 2013-01-19 12:53:21 +01:00
sort.tcl Config: Add quicklist, remove old list options 2015-01-02 11:16:10 -05:00