1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00

38 Commits

Author SHA1 Message Date
Ruben Bridgewater
94e9f1fcfc Replace jshint with eslint and add lots of rules
Fix eslint errors accordingly
2016-03-26 14:45:12 +01:00
Ruben Bridgewater
7a5a4aa535 Fix pub sub mode
There is likely a better and more performant way to fix this but this works so far
and should be good enough to release and improve later.

Make test more robust

Add another test
2016-03-26 02:14:10 +01:00
Ruben Bridgewater
ff19663d9d Remove code overhead
Add another domain test

Fix test on node 0.10
2016-03-15 03:56:36 +01:00
Ruben Bridgewater
f75b38a3e2 Make windows tests more robust 2016-03-14 23:10:46 +01:00
Ruben Bridgewater
d858bd8383 Passing a stream as second parameter in the constructor
To support private streams this is implemented.
This needs some monkey patching to work, so it is not officially
supported and might be removed at any time!

Fixes #950
Closes #951
2016-03-10 22:01:23 +01:00
Ruben Bridgewater
2913eaccaf Make tests more robust and print more details if one might still fail 2016-03-07 11:52:48 +01:00
Ruben Bridgewater
e48e1e845f Windows fixes
Skip redis process spawn on windows for now
2016-03-07 02:03:10 +01:00
Ruben Bridgewater
575ad7357b Insert deprecation warnings and some minor refactoring 2016-03-07 01:57:56 +01:00
Ruben Bridgewater
cc540dbc3c Implement retry_strategy and add more info to the reconnect event 2016-03-07 01:57:56 +01:00
Ruben Bridgewater
711d51c387 Add unify_options / createClient tests 2016-03-07 01:57:56 +01:00
Ruben Bridgewater
4f3c4a2ef6 Add more tests
Add execution order tests
Fix flaky test
Add utils tests
Improve other tests
2016-03-07 01:57:56 +01:00
Ruben Bridgewater
d739ff3a76 Fix test race condition 2016-03-01 17:59:16 +01:00
Ruben Bridgewater
8dcf06754d Add warnings and handle protocol errors gracefuly 2016-03-01 17:59:16 +01:00
Ruben Bridgewater
5ef24a90b6 Add tests and improve older tests 2015-12-31 06:00:20 +01:00
Ruben Bridgewater
e89bcec1c2 Deprecate and warn on null / undefined arguments 2015-12-30 16:18:17 +01:00
Ruben Bridgewater
b91692e928 Skip tls tests on windows and stunnel
This will also remove the libwrap option to work on arch
2015-11-23 18:20:15 +01:00
Ruben Bridgewater
b6a81a4297 Use a .create_stream function, so other libraries can mock the stream if wanted
Reference https://github.com/hdachev/fakeredis/pull/34
2015-11-23 11:31:41 +01:00
Ruben Bridgewater
8f9ad00de2 Add the redis url to the options object and accept .createClient(null, host, options) 2015-11-23 11:30:50 +01:00
Ruben Bridgewater
30d2184dbb Throw on other protocols provided than the redis protocol 2015-11-23 11:30:50 +01:00
Ruben Bridgewater
d3352bf550 Auto detect ip family if a IP has been provided 2015-11-23 11:30:50 +01:00
Ruben Bridgewater
8bf794fb36 Stricten tests by always ending redis with .end(true) if possible 2015-11-22 16:56:54 +01:00
Ruben Bridgewater
2cc01f52b6 Use higher time difference for slow machines in tests 2015-10-30 01:33:51 +01:00
Ruben Bridgewater
cc79b2db69 Deactivate test for windows 2015-10-30 01:16:11 +01:00
Ruben Bridgewater
dd563c2cb9 Fix unix only test not to run on windows 2015-10-30 00:09:16 +01:00
Ruben Bridgewater
b7a0f6f905 Add test. Closes #909 2015-10-29 23:49:10 +01:00
Ruben Bridgewater
d454e4025b Fix an issue with .multi after a reconnect on node 0.10
Add .path to .createClient options object for unix sockets
2015-10-29 23:23:20 +01:00
Ruben Bridgewater
7718e219e9 Remove listener if not needed anymore and alawys end a client after a test 2015-10-29 15:04:47 +01:00
Ruben Bridgewater
dc6fc9c113 Use connect_timeout also as the socket_timeout if explicitly provided
Fixes #587
Fixes #393
Closes #652
Closes #394
2015-10-29 14:21:06 +01:00
Ruben Bridgewater
d39f6961e6 Add tests and emit UNCERTAIN_STATE errors 2015-10-28 23:53:10 +01:00
Ruben Bridgewater
0ec2c43603 Fix fired but not yet returned commands not being rejected after a connection loss 2015-10-28 23:53:10 +01:00
Ruben Bridgewater
304abe4318 Fix individual createClient functions passing undefined options to a new instance. Closes #893 2015-10-18 16:58:34 +02:00
Ruben Bridgewater
2a65ee48dd Fix some minor issues and add more tests
Do not mutate the options object and add some more tests
2015-10-17 21:56:16 +02:00
Ruben Bridgewater
e0b9f0de79 Fix race condition in tests 2015-10-11 03:31:45 +02:00
Ruben Bridgewater
977d4dba2b Add host and port to options object 2015-09-30 02:35:11 +02:00
Ruben Bridgewater
89c8dd056b Do not emit the broken mode twice if exec is called
Add more tests
2015-09-16 05:22:43 +02:00
Ruben Bridgewater
55d0036eae Add test and fix keeping the offline queue
Use a new delay after reconnecting
2015-09-16 05:22:07 +02:00
Ruben Bridgewater
3c2ba8c373 Try exactly until the connection timeout has been reached
Fixes #587
2015-09-16 05:22:07 +02:00
Ruben Bridgewater
03e8c03503 Add connection timeout and max attempts tests 2015-09-16 05:22:07 +02:00