Leibale Eidelman
fbca5cda0a
Upgrade node and dependencies ( #1578 )
...
* upgrade workflow actions
* fix setup-node version
* change redis-64 version to 3.0.503
* fix "no password is set" for redis6,
fix tests to work with redis6,
add redis6 to workflows
* do not use assert.match (was added only at v13.6.0 & v12.16.0)
* fix errors.subscribeUnsubscribeOnly regex
* fix invaliodPassword typo
* send --save "" to redis-server in tests
* upgrade dependencies, set node minimum version to 10, use current LTS versions in tests and benchmark workflows
* change windows tests too
* revert mocha back to ^4.1.0
* fix for f5528504a0
- revert mocha back to ^4.1.0
* fix some tests and upgrade mocha
* fix two more tests
* try to fix tests in windows
* upgrade denque and redis-commands
ref #1575
* replace `new Buffer` (deprecated) with `Buffer.from`
* Buffer.from(0) should be Buffer.alloc(0)
2021-03-08 14:12:26 -05:00
Salakar
da31ade348
tests: improve coverage & fix unreachable code branches
2020-02-09 15:44:52 +00:00
Salakar
79927c56a0
tests: remove unused parser
client option from all tests & helpers
2020-02-09 06:08:30 +00:00
Salakar
c0cc0bfab4
start of work towards v3 release
2020-02-09 02:05:21 +00:00
JinHyuk Kim
50b4009005
fix incorrect code for eslint rules ( #1367 )
...
* fix code for eslint rules
2019-02-06 15:19:03 +01:00
Ruben Bridgewater
0c6edbd8a6
Make test idempotent
2016-06-16 12:39:08 +02:00
Ruben Bridgewater
de0a9628aa
Fire the individual original callbacks when using transactions
...
Fixes #1089
2016-06-16 12:29:00 +02:00
Ruben Bridgewater
8b6f2dd35e
Refactor command parsing
2016-05-29 01:38:34 +02:00
Ruben Bridgewater
27eac2f594
Prevent a race condition by just forcefully ending the connection in the test
2016-05-29 01:38:34 +02:00
Ruben Bridgewater
03f1a606f7
Improve error handling
...
Added individual error classes
Don't silently fail for commands without callback from now on
General polishing (e.g. better error messages)
Fix typos
2016-04-29 04:31:39 +02:00
Ruben Bridgewater
ce1678c778
Improve coverage; make tests ready for Redis 3.2
...
Add command sanity check
2016-04-29 04:10:23 +02:00
Ruben Bridgewater
eae16938cd
Add monitor transaction warning / error
2016-04-29 04:10:23 +02:00
Ruben Bridgewater
a857829a36
Improve error handling
...
Arguments are now passed to an command error in case they exist
An error is only emitted if that very same error is not already handled in a callback
2016-04-29 04:10:23 +02:00
Ruben Bridgewater
3038c9043d
Make sure all individual handled command work in multi context the same
...
Fix quit possibly resulting in reconnections
2016-04-29 04:10:23 +02:00
Ruben Bridgewater
0424cb0bf3
Move pub sub command into individual commands and use call_on_write
2016-04-29 04:10:23 +02:00
Ruben Bridgewater
683815de9d
Refactor pipelining
2016-04-29 04:10:23 +02:00
Ruben Bridgewater
d2b8f2f391
Add support for camelCase
...
Fixes missing `EXEC_BATCH` on multi
2016-04-29 04:10:23 +02:00
Ruben Bridgewater
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
Ruben Bridgewater
2e68a7a270
Make test more robust by waiting till redis answered
...
The former fix was actually not working as expected
2016-03-26 15:44:46 +01:00
Ruben Bridgewater
68f2a8894e
Make test more robust
...
The redis server ends the connection and the stream end might be triggered
before the quit command returned and is therefor racy.
2016-03-26 15:22:36 +01:00
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
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
e48e1e845f
Windows fixes
...
Skip redis process spawn on windows for now
2016-03-07 02:03:10 +01:00
Ruben Bridgewater
c2e25a7f71
Move lots code into separate files and split big functions party into smaller ones
...
Also refactor small stuff here
Removed the .send_anyway boolean and use .ready instead
2016-03-07 01:57:56 +01:00
Ruben Bridgewater
89209b8adc
Handle very big pipelines without crashing
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
60eee34de1
Unify command handling
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
0207163655
Remove support of redis 2.4
...
All tests require at least redis 2.6 from now on. Anyone who wants to run the tests should be able to install a newer version.
2015-11-30 13:31:26 +01:00
Ruben Bridgewater
d55017a01e
Use .end(true) to stricten test cases and improve coverage
2015-11-24 00:23:18 +01:00
Ruben Bridgewater
431bed882b
Increase test timeout for appveyor
2015-11-19 00:29:49 +01:00
Ruben Bridgewater
241e156499
Fix saving buffers with charsets other than utf-8 while using multi
...
This will also improve pipelinening for buffers and fixes the return value of Batch.exec
Fixes #913
2015-11-18 02:43:43 +01:00