Ruben Bridgewater
d55017a01e
Use .end(true) to stricten test cases and improve coverage
2015-11-24 00:23:18 +01:00
Ruben Bridgewater
32a5e1d148
Add changelog entries
2015-11-23 18:38:06 +01:00
Ruben Bridgewater
b5fe822553
Add selected_db to the new redis instance if using client.duplicate
2015-11-23 14:38:10 +01:00
Ruben Bridgewater
6711c94d1b
Add duplicate function to duplicate the current client instance
...
Fixes #919
2015-11-23 11:32:23 +01:00
Ruben Bridgewater
634dcee859
Only initiate the parser once per instance and throw sync if the parser can't be found
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
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
399a29a97c
Improve pipeline logic and fix #897
2015-10-28 23:53:10 +01: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
90033bdd00
Fix some tests
2015-10-10 19:37:42 +02:00
bcoe
b773119967
the monitor test should not be within the block of tests related to redis closing unexpectedly
2015-10-03 21:28:14 -07:00
bcoe
0db1152492
tests were failing on my old mac (node 0.10.40, osx 10.9.5, 2.8.7)
2015-10-03 21:08:00 -07:00
Ruben Bridgewater
2ca42417bf
Fix explicitly passing undefined as callback
2015-10-02 20:20:56 +02:00
Ruben Bridgewater
afcd760b18
Fix a test and add some more
2015-09-30 02:04:56 +02:00
Ruben Bridgewater
5f261c5823
Minor changes
...
Move utility functions in lib/utils.js
Improve the js parser in cases the buffer is incomplete
Rename lib/parser to lib/parsers
Fix smaller issues with test suite and fix parser errors not being catched
Fixed wrong test for the new .end flush parameter
Fixed test suite options being partly mutated
Add some more tests
2015-09-25 02:12:48 +02:00
Ruben Bridgewater
bd4fca130d
Make .end flush optional and add some tests
2015-09-24 13:27:32 +02:00
Ruben Bridgewater
f29193a7e0
Investigate failure
2015-09-21 22:37:56 +02:00
Ruben Bridgewater
07154fce25
Fix typo
2015-09-21 22:30:35 +02:00
Ruben Bridgewater
6958c1854b
Increase the coverage by adding tests and fix a failing ready check
2015-09-21 02:38:27 +02:00
Ruben Bridgewater
1cbf19ddf5
Hotfix for older node versions
2015-09-20 21:19:29 +02:00
Ruben Bridgewater
c60a3b65fe
Rename .command_used to .command and add the used command to more errors
2015-09-20 18:56:21 +02:00
Ruben Bridgewater
1f121fa6e2
Fix error messages being manipulated. Fixes #695
2015-09-20 18:53:57 +02:00
Ruben Bridgewater
26e5764214
Remove broken test
2015-09-19 17:48:25 +02:00
Ruben Bridgewater
f543d45d1f
Fix and add more tests
2015-09-19 17:48:25 +02:00
Ruben Bridgewater
28f31f134c
Improve server keyspace info in .server_info
2015-09-18 01:51:40 +02:00
Ruben Bridgewater
21d8bdbbcb
Refactor multi to have a consistent error handling
...
Ignore *.log files
2015-09-17 20:30:11 +02:00
Ruben Bridgewater
95a2c373a2
Fix broken build. The merge had a small conflict
2015-09-16 05:58:29 +02:00
Ruben Bridgewater
f92f4d0df9
Merge pull request #850 from fintura/fix-late-commands
...
Fix commands not being rejected after calling .quit
Fixes #791
2015-09-16 05:43:55 +02:00
Ruben Bridgewater
a0c906256c
Fix commands not being rejected after calling .quit as reported in #791
2015-09-16 05:29:34 +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
0b8705abe9
Do not run all tests with every single connection (if one connection works, the others are going to be fine too)
2015-09-16 05:22:07 +02:00
Ruben Bridgewater
1e0421ac3b
Emit errors if the connection timeout / maximum retry attempts have been exceeded
...
Accept setting max_attempts to zero.
The reconnection event is now emitted when trying to reconnect instead of earlier.
The connection timeout is now going to trigger once after exceeding the maximum timeout instead of stopping earlier.
2015-09-16 05:22:07 +02:00
Ruben Bridgewater
005e869d83
Remove send_command safety checks
...
This checks are only important for users who use send_command directly instead of using the convience method.
As the readme clearly stats how send_command should work and any user would have run into errors if misused, these checks can be removed. If any user might misuse the function anyway, it is very likely that another error will be thrown because of that
Fix #629 and insert tests
2015-09-16 05:10:39 +02:00
Ruben Bridgewater
4f0443cdd4
Emit errors instead of throwing them
...
Thrown errors might kill the users app. By emitting the errors the user is able to catch all errors in one place without the app going down
2015-09-14 21:28:40 +02:00
Benjamin Coe
b717c8154b
added windows badge, made changes based on @BrideAr's code-review
2015-09-13 10:00:50 -07:00
Benjamin Coe
71ea42f1bd
fix linting and timeout issue
2015-09-12 22:59:47 -07:00
Benjamin Coe
20bc05abb5
test suite should now run on Windows
2015-09-12 22:56:17 -07:00
Benjamin Coe
a0bf9e2314
tweaks based on running test-suite on Windows on an older Redis
2015-09-12 18:29:50 -07:00
Ruben Bridgewater
43e25e73c9
Remove async dependency
2015-09-12 19:36:07 +02:00
Ruben Bridgewater
1ae280dcec
Fix some tests and deactivate broken ones
2015-09-12 18:56:49 +02:00
Ruben Bridgewater
ba779ac361
Some small code style changes
...
Revert some done stuff
2015-09-12 18:56:49 +02:00
Ruben Bridgewater
9acbd6c860
Add simicolons and remove trailing whitespace
2015-09-12 18:56:49 +02:00
Ruben Bridgewater
06c5f1922b
Add jshint and fix errors accordingly (including broken tests)
2015-09-12 18:56:49 +02:00
Benjamin Coe
d976bbcb2d
some small tweaks to #815 , so that we don't use two differnt approaches for spawning redis
2015-09-03 22:51:25 -07:00
Ruben Bridgewater
89e1f6f067
Improve code coverage by adding tests and removing unnecessary code
2015-09-03 22:26:01 +02:00
Ruben Bridgewater
a5938f3ade
Refactor the test suite and remove duplicated code
2015-09-01 23:28:41 +02:00
Daniel Price
575ade907c
Issue #512 send_command("monitoring") is doomed to fail
2015-08-21 14:57:48 -07:00
Benjamin Coe
5d83e64d00
fixed up our one commented out test, based on @erinspice's code review
2015-08-15 13:25:03 -07:00
Benjamin Coe
ce7f21fc34
ported sdiff, sdiffstore, sinterstore, smembers, smove, spop, sunion, client.monitor
2015-08-14 22:30:51 -07:00