1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-03 04:01:40 +03:00
Commit Graph

40 Commits

Author SHA1 Message Date
14170f9d02 Improve tests a bit
Reduce timeouts if possible
Extend timeouts if needed (windows tests need their time)
Don't expose the redis socket to others than the owner
Don't create the stunnel log
2016-04-01 11:42:22 +02:00
48481552c9 Calling quit should always close the connection 2016-03-27 05:18:38 +02:00
94e9f1fcfc Replace jshint with eslint and add lots of rules
Fix eslint errors accordingly
2016-03-26 14:45:12 +01:00
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
ff19663d9d Remove code overhead
Add another domain test

Fix test on node 0.10
2016-03-15 03:56:36 +01:00
f75b38a3e2 Make windows tests more robust 2016-03-14 23:10:46 +01:00
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
2913eaccaf Make tests more robust and print more details if one might still fail 2016-03-07 11:52:48 +01:00
e48e1e845f Windows fixes
Skip redis process spawn on windows for now
2016-03-07 02:03:10 +01:00
575ad7357b Insert deprecation warnings and some minor refactoring 2016-03-07 01:57:56 +01:00
cc540dbc3c Implement retry_strategy and add more info to the reconnect event 2016-03-07 01:57:56 +01:00
711d51c387 Add unify_options / createClient tests 2016-03-07 01:57:56 +01:00
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
d739ff3a76 Fix test race condition 2016-03-01 17:59:16 +01:00
8dcf06754d Add warnings and handle protocol errors gracefuly 2016-03-01 17:59:16 +01:00
5ef24a90b6 Add tests and improve older tests 2015-12-31 06:00:20 +01:00
e89bcec1c2 Deprecate and warn on null / undefined arguments 2015-12-30 16:18:17 +01:00
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
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
8f9ad00de2 Add the redis url to the options object and accept .createClient(null, host, options) 2015-11-23 11:30:50 +01:00
30d2184dbb Throw on other protocols provided than the redis protocol 2015-11-23 11:30:50 +01:00
d3352bf550 Auto detect ip family if a IP has been provided 2015-11-23 11:30:50 +01:00
8bf794fb36 Stricten tests by always ending redis with .end(true) if possible 2015-11-22 16:56:54 +01:00
2cc01f52b6 Use higher time difference for slow machines in tests 2015-10-30 01:33:51 +01:00
cc79b2db69 Deactivate test for windows 2015-10-30 01:16:11 +01:00
dd563c2cb9 Fix unix only test not to run on windows 2015-10-30 00:09:16 +01:00
b7a0f6f905 Add test. Closes #909 2015-10-29 23:49:10 +01:00
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
7718e219e9 Remove listener if not needed anymore and alawys end a client after a test 2015-10-29 15:04:47 +01:00
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
d39f6961e6 Add tests and emit UNCERTAIN_STATE errors 2015-10-28 23:53:10 +01:00
0ec2c43603 Fix fired but not yet returned commands not being rejected after a connection loss 2015-10-28 23:53:10 +01:00
304abe4318 Fix individual createClient functions passing undefined options to a new instance. Closes #893 2015-10-18 16:58:34 +02:00
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
e0b9f0de79 Fix race condition in tests 2015-10-11 03:31:45 +02:00
977d4dba2b Add host and port to options object 2015-09-30 02:35:11 +02:00
89c8dd056b Do not emit the broken mode twice if exec is called
Add more tests
2015-09-16 05:22:43 +02:00
55d0036eae Add test and fix keeping the offline queue
Use a new delay after reconnecting
2015-09-16 05:22:07 +02:00
3c2ba8c373 Try exactly until the connection timeout has been reached
Fixes #587
2015-09-16 05:22:07 +02:00
03e8c03503 Add connection timeout and max attempts tests 2015-09-16 05:22:07 +02:00