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
9 years ago
Ruben Bridgewater
ce1678c778
Improve coverage; make tests ready for Redis 3.2
Add command sanity check
9 years ago
Ruben Bridgewater
eae16938cd
Add monitor transaction warning / error
9 years ago
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
9 years ago
Ruben Bridgewater
3038c9043d
Make sure all individual handled command work in multi context the same
Fix quit possibly resulting in reconnections
9 years ago
Ruben Bridgewater
0424cb0bf3
Move pub sub command into individual commands and use call_on_write
9 years ago
Ruben Bridgewater
683815de9d
Refactor pipelining
9 years ago
Ruben Bridgewater
d2b8f2f391
Add support for camelCase
Fixes missing `EXEC_BATCH` on multi
9 years ago
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
9 years ago
Ruben Bridgewater
2e68a7a270
Make test more robust by waiting till redis answered
The former fix was actually not working as expected
9 years ago
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.
9 years ago
Ruben Bridgewater
94e9f1fcfc
Replace jshint with eslint and add lots of rules
Fix eslint errors accordingly
9 years ago
Ruben Bridgewater
ff19663d9d
Remove code overhead
Add another domain test
Fix test on node 0.10
9 years ago
Ruben Bridgewater
f75b38a3e2
Make windows tests more robust
9 years ago
Ruben Bridgewater
e48e1e845f
Windows fixes
Skip redis process spawn on windows for now
9 years ago
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
9 years ago
Ruben Bridgewater
89209b8adc
Handle very big pipelines without crashing
9 years ago
Ruben Bridgewater
4f3c4a2ef6
Add more tests
Add execution order tests
Fix flaky test
Add utils tests
Improve other tests
9 years ago
Ruben Bridgewater
60eee34de1
Unify command handling
9 years ago
Ruben Bridgewater
5ef24a90b6
Add tests and improve older tests
9 years ago
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.
9 years ago
Ruben Bridgewater
d55017a01e
Use .end(true) to stricten test cases and improve coverage
9 years ago
Ruben Bridgewater
431bed882b
Increase test timeout for appveyor
9 years ago
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
9 years ago
Ruben Bridgewater
88c9e28a27
Fix test
9 years ago
Ruben Bridgewater
d454e4025b
Fix an issue with .multi after a reconnect on node 0.10
Add .path to .createClient options object for unix sockets
9 years ago
Ruben Bridgewater
d39f6961e6
Add tests and emit UNCERTAIN_STATE errors
9 years ago
Ruben Bridgewater
ebea0872a9
Add regression test
9 years ago
Ruben Bridgewater
2a65ee48dd
Fix some minor issues and add more tests
Do not mutate the options object and add some more tests
9 years ago
Ruben Bridgewater
0d4d4d7416
Fix multi not being executed on node 0.10 if not yet ready. Closes #889
9 years ago
Ruben Bridgewater
60e9d0fdd6
Fix multi regression. Closes #889
Allow commands being executed after a Multi / Batch was initiated but not yet executed
9 years ago
Ruben Bridgewater
f0e28bf0f7
Minor improvement for .batch and .multi for small values
Improve the speed by round about 5% for small values
Add Multi.exec_atomic
9 years ago
Ruben Bridgewater
ed2fc95444
Fix should_buffer return values and empty .batch and .auth return value being sync
Fix test
9 years ago
Ruben Bridgewater
f8c245e04f
Add .batch with better pipeline implementation
9 years ago
Ruben Bridgewater
146d88154c
Fix send_command always returning should_buffer boolean
Fix .auth, .select and .exec to return the should_buffer boolean
9 years ago
Ruben Bridgewater
e0b9f0de79
Fix race condition in tests
9 years ago
Ruben Bridgewater
29b31f749a
Add a better promise documentation and add some tests
9 years ago
Ruben Bridgewater
bd4fca130d
Make .end flush optional and add some tests
9 years ago
Ruben Bridgewater
38281c20b2
Fix small issues with hmset & multi constructor
9 years ago
Ruben Bridgewater
7be7128b2b
Arguments passed as arrays should not be mutated. Fixes #866
9 years ago
Ruben Bridgewater
c60a3b65fe
Rename .command_used to .command and add the used command to more errors
9 years ago
Ruben Bridgewater
959b0ee093
Fix error codes for multi.exec and add more tests
9 years ago
Ruben Bridgewater
2293f7ff85
Add some more tests
9 years ago
Ruben Bridgewater
f543d45d1f
Fix and add more tests
9 years ago
Ruben Bridgewater
46e2dc2de5
Fix memory leak. See #723 and thx to @rahar
9 years ago
Ruben Bridgewater
21d8bdbbcb
Refactor multi to have a consistent error handling
Ignore *.log files
9 years ago
Ruben Bridgewater
a0c906256c
Fix commands not being rejected after calling .quit as reported in #791
9 years ago
Ruben Bridgewater
a0c92b0756
Add a lot more tests to indicate that the everything is consistent
Add a test for #390
More special cases
9 years ago
Ruben Bridgewater
c522ca1264
Fix inconsistent command argument handling
Earlier multi.command and client.command diverged a lot in the way they accepted arguments. This is now consistent
This will also fix some bugs like using multi.hmset with arrays
9 years ago
Ruben Bridgewater
1b261fcaad
Revert "added test for multi.hmset's array handling"
This reverts commit bb221adec4
.
The test is broken and only passes because there's a bug with multi hmset using arrays.
See #686 and #838 for more details
9 years ago