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

23 Commits

Author SHA1 Message Date
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