Bryce Baril
1d0d3aaf8f
Give more time for unref test for slower systems
2013-10-02 22:26:43 -07:00
Bryce Baril
b12c49a207
Add unref() method to RedisClient that will call unref() on the socket connection, allowing it to close when unused. This is experimental because it does not yet understand the Redis protocol, so subscriptions or blocking operations will not work correctly.
2013-10-02 16:10:26 -07:00
Bryce Baril
5f125b51d4
Issue #439 (and others): Stop assuming all "message" or "pmessage" replies are pubsub replies. Check pub_sub_mode as well.
2013-10-02 14:04:28 -07:00
Bryce Baril
8f71003009
Add test for auth_pass option submitted by hpeinar
2013-07-24 08:21:28 -07:00
Bryce Baril
807aaf91b7
Add guards to some newer tests for older Redis server differences. Fixes #430
2013-05-05 10:01:38 -07:00
Bryce Baril
747cd1f10f
Merge branch 'jifeng-master'
2013-04-27 08:25:39 -07:00
Bryce Baril
cfd10ac46d
Merge branch 'jeffbski-0.8.2-unsub-empty'
2013-04-27 08:23:45 -07:00
Bryce Baril
b321af5cfc
Merge branch 'thanpolas-fix-exception-in-multi-exec'
2013-04-27 08:15:17 -07:00
Thanasis Polychronakis
a86720097e
added test for MULTI exception
2013-04-19 15:40:53 +03:00
Bryce Baril
aa50c789df
Merge branch 'master' of https://github.com/mciparelli/node_redis into mciparelli-master
2013-04-18 22:04:10 -07:00
Thanasis Polychronakis
ed57dcd9d5
handling of errors on multi, now returns 'err' array type
2013-04-18 22:25:58 +03:00
Martín Ciparelli
2e4c178382
added tests for #404
2013-04-09 16:13:25 -03:00
englandpost
3e0762e6ec
fix fwd errors test for node >= 0.9.1
...
it seems that listeners are no longer mutable
* events: Make emitter.listeners() side-effect free (isaacs, Joe Andaverde)
https://raw.github.com/joyent/node/v0.9.1/ChangeLog
2013-04-05 00:44:06 +04:00
Jeff Barczewski
383bafd2cf
limit cbtests to 2.6.11 and above
...
Test hangs on older versions of Redis
2013-03-27 13:39:43 -05:00
继风
44526402dc
fix bug when callback is undefined
2013-03-27 15:58:50 +08:00
Bryce Baril
b0f7760b19
Merge branch 'select_db_exception' of https://github.com/roamm/node_redis into roamm-select_db_exception
2013-03-26 21:47:09 -07:00
Jeff Barczewski
0c143a7299
failing tests for empty unsub and punsub
...
When unsubscribe or punsubscribe is called
and there is nothing to unsubscribe from, the reply[1]
argument is a null which causes a TypeError
Cannot call method 'toString' of null
```
TypeError: Cannot call method 'toString' of null
at RedisClient.return_reply (/Users/barczewskij/projects/node_redis/index.js:633:65)
at ReplyParser.RedisClient.init_parser (/Users/barczewskij/projects/node_redis/index.js:266:14)
at ReplyParser.EventEmitter.emit (events.js:96:17)
at ReplyParser.send_reply (/Users/barczewskij/projects/node_redis/lib/parser/javascript.js:300:10)
at ReplyParser.execute (/Users/barczewskij/projects/node_redis/lib/parser/javascript.js:211:22)
at RedisClient.on_data (/Users/barczewskij/projects/node_redis/index.js:483:27)
at Socket.<anonymous> (/Users/barczewskij/projects/node_redis/index.js:82:14)
at Socket.EventEmitter.emit (events.js:96:17)
at TCP.onread (net.js:396:14)
```
2013-03-26 10:48:11 -05:00
roam
6fb7204ca5
Add a test case for reconnect_select_db_after_pubsub
2013-03-18 16:08:58 +08:00
Bryce Baril
d03d747145
Merge branch 'add-retry-max' of https://github.com/tomaszdurka/node_redis into tomaszdurka-add-retry-max
2013-03-17 15:59:40 -07:00
Tomasz Durka
0698a5e627
Formatting
2013-03-17 23:45:51 +01:00
继风
78d8f9ef9c
need not send message to server when set undefined value
2013-03-17 18:05:39 +08:00
Joffrey F
ed2652f04c
Added reproduction test for #344 in test.js
2013-03-16 09:13:40 -07:00
Jonas Dohse
67e908ad55
Avoid collision between command and internal field
2013-03-15 22:34:32 +01:00
Jonas Dohse
de22a94edd
Amend SCRIPT LOAD test cases
2013-03-14 15:55:13 +01:00
Tomasz Durka
38dbacac9f
Add retry_max_delay option
...
- add option
- add test
2013-03-12 12:31:19 +01:00
Bryce Baril
92ed0befc1
In nested MULTIBULK buffers, correctly recurse on an incomplete read buffer.
...
Signed-off-by: DTrejo <david.daniel.trejo@gmail.com >
2013-03-09 19:27:33 -05:00
Bryce Baril
9127f34393
Parser should only catch parser errors and bubble the rest to the caller.
...
Signed-off-by: DTrejo <david.daniel.trejo@gmail.com >
2013-03-09 19:27:33 -05:00
Bryce Baril
0c172f425c
Fix parser incorrect buffer skip for MULTI/EXEC transaction errors with WATCH.
...
Signed-off-by: DTrejo <david.daniel.trejo@gmail.com >
2013-03-09 19:27:33 -05:00
Bryce Baril
87132e2b03
Add hiredis guard to INCR test
...
Signed-off-by: DTrejo <david.daniel.trejo@gmail.com >
2013-03-09 19:27:33 -05:00
DTrejo
405011b640
Revert "hmset throws/errors out on non-string values. fixes #218 "
...
Reverting because this was a documentation problem, not a problem with
the code. Performance-wise, this is faster than the approach in #345 , though
it may cause users more trouble. This is okay, if someone opens an issue we
can point them to the docs.
This reverts commit b60e001fa0
.
Conflicts:
index.js
test.js
2013-02-23 22:56:08 -05:00
DTrejo
a02b0f57e4
test.js: early return if command not supported
2013-02-23 22:43:26 -05:00
Tom Leach
837cec36b6
Detect is an incoming "reply" is in fact a pubsub message. If so, do not pop the command queue.
...
This fixes an issue where the command queue gets popped prematurely by pubsub
messages, leading to callbacks for those commands not being invoked.
Close #360 .
Signed-off-by: DTrejo <david.daniel.trejo@gmail.com >
2013-02-23 22:42:34 -05:00
Jonas Dohse
f0ae6642f9
Use first word of multi word commands
...
Close #363 .
Signed-off-by: DTrejo <david.daniel.trejo@gmail.com >
2013-02-23 22:18:13 -05:00
DTrejo
938c0526a0
EVAL: allow parameters as an array. Close #368 .
...
Signed-off-by: DTrejo <david.daniel.trejo@gmail.com >
2013-02-23 22:05:34 -05:00
Bryce Baril
f3c298d088
Removing order requirement for KEYS test
...
Close #378 .
Signed-off-by: DTrejo <david.daniel.trejo@gmail.com >
2013-02-23 21:11:36 -05:00
Bryce Baril
2a12ca39aa
Fixing tests for Redis version 2.6.5+ MULTI/EXEC transaction failure compatibility.
...
Signed-off-by: DTrejo <david.daniel.trejo@gmail.com >
2013-02-23 21:08:18 -05:00
DTrejo
92ac62541d
Fix #381 . slowlog test failure on first run.
2013-02-23 21:06:36 -05:00
Nitesh
0f5b43a68c
test.js: slowlog. Closes #295
...
Signed-off-by: DTrejo <david.daniel.trejo@gmail.com >
2013-02-17 20:30:18 -05:00
Garrett Johnson
b5a57b40f7
test.js: smembers reply should not assume order, b/c sets do not ensure order
...
Closes #326 .
Signed-off-by: DTrejo <david.daniel.trejo@gmail.com >
2013-02-17 19:50:14 -05:00
Michael Jackson
7f3f11f9b1
Make return_buffers work with ints
2012-10-26 20:35:19 -07:00
DTrejo
252a77e92a
multi_bulk reply test for fix #274
2012-09-21 22:28:30 -04:00
Chakrit Wichian
587d4a361b
Add test for GET non-existent-key
case. (issue #267 )
2012-09-12 01:59:35 +07:00
Kevin Ingersoll
790c783e8d
Fix tests w/ support for array as last arg and no errors
...
Signed-off-by: DTrejo <david.trejo@voxer.com >
2012-08-23 14:18:17 -07:00
Martín Ciparelli
124ea082b9
fixes #218 by expanding last argument array only for sadd command
...
Also adds a test that uses SADD in caps. Nicely enough, this makes
multi_bench.js run just a tiny bit faster :)
Signed-off-by: DTrejo <david.trejo@voxer.com >
2012-08-17 15:33:32 -07:00
DTrejo
58804e6e27
test.js: HLEN
2012-08-06 18:19:47 -07:00
Ignacio Burgueño
50914baa7f
Save and clear client state. Restore it after the connection is ready.
...
This change stores the connection state regarding subscriptions,
selected db and monitoring. When the connection to Redis drops, the state
is reestablished after a succesful reconnect. Fixes #241 . Fixes #210 .
Signed-off-by: DTrejo <david.trejo@voxer.com >
2012-07-12 17:19:16 -07:00
DTrejo
1b0b2dc87d
index.js: fix enable_offline_queue default. tests pass
2012-07-05 19:18:26 -07:00
Shankar Karuppiah
83dc4c999b
Added option to disable offline queue
...
Signed-off-by: DTrejo <david.trejo@voxer.com >
2012-07-05 19:04:10 -07:00
Trae Robrock
db4f1648d4
Adding tests for idle event
...
Signed-off-by: DTrejo <david.trejo@voxer.com >
2012-07-05 17:09:26 -07:00
DTrejo
b60e001fa0
hmset throws/errors out on non-string values. fixes #218
2012-06-04 16:13:56 -07:00