1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00
Commit Graph

39 Commits

Author SHA1 Message Date
Ruben Bridgewater
88c9e28a27 Fix test 2015-10-29 23:27:52 +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
d39f6961e6 Add tests and emit UNCERTAIN_STATE errors 2015-10-28 23:53:10 +01:00
Ruben Bridgewater
ebea0872a9 Add regression test 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
0d4d4d7416 Fix multi not being executed on node 0.10 if not yet ready. Closes #889 2015-10-14 02:24:11 +02:00
Ruben Bridgewater
60e9d0fdd6 Fix multi regression. Closes #889
Allow commands being executed after a Multi / Batch was initiated but not yet executed
2015-10-14 00:58:27 +02:00
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
2015-10-12 08:26:46 +02:00
Ruben Bridgewater
ed2fc95444 Fix should_buffer return values and empty .batch and .auth return value being sync
Fix test
2015-10-11 03:38:41 +02:00
Ruben Bridgewater
f8c245e04f Add .batch with better pipeline implementation 2015-10-11 03:35:22 +02:00
Ruben Bridgewater
146d88154c Fix send_command always returning should_buffer boolean
Fix .auth, .select and .exec to return the should_buffer boolean
2015-10-11 03:35:22 +02:00
Ruben Bridgewater
e0b9f0de79 Fix race condition in tests 2015-10-11 03:31:45 +02:00
Ruben Bridgewater
29b31f749a Add a better promise documentation and add some tests 2015-09-30 01:57:58 +02:00
Ruben Bridgewater
bd4fca130d Make .end flush optional and add some tests 2015-09-24 13:27:32 +02:00
Ruben Bridgewater
38281c20b2 Fix small issues with hmset & multi constructor 2015-09-24 12:08:25 +02:00
Ruben Bridgewater
7be7128b2b Arguments passed as arrays should not be mutated. Fixes #866 2015-09-24 00:31:55 +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
959b0ee093 Fix error codes for multi.exec and add more tests 2015-09-19 18:26:44 +02:00
Ruben Bridgewater
2293f7ff85 Add some more tests 2015-09-19 18:17:40 +02:00
Ruben Bridgewater
f543d45d1f Fix and add more tests 2015-09-19 17:48:25 +02:00
Ruben Bridgewater
46e2dc2de5 Fix memory leak. See #723 and thx to @rahar 2015-09-18 00:57:29 +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
a0c906256c Fix commands not being rejected after calling .quit as reported in #791 2015-09-16 05:29:34 +02:00
Ruben Bridgewater
a0c92b0756 Add a lot more tests to indicate that the everything is consistent
Add a test for #390

More special cases
2015-09-15 04:14:40 +02:00
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
2015-09-15 04:00:02 +02:00
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
2015-09-14 21:23:47 +02:00
Benjamin Coe
bb221adec4 added test for multi.hmset's array handling 2015-09-14 00:09:38 -07:00
Benjamin Coe
68936c5eb2 based on code-review added back check for error 2015-09-13 19:17:52 -07: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
224aff9cee found another difference on Windows CI 2015-09-13 01:05:50 -07:00
Benjamin Coe
0b46a69c7e fix merge, run linting as part of the test suite 2015-09-12 18:44:01 -07:00
Benjamin Coe
77e8552374 down to one failing test on Windows, time to rebase 2015-09-12 18:31:25 -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
0925885a88 Do not wrap errors into other errors. The trace is going to be manipulated that way. 2015-09-12 21:59:17 +02:00
Ruben Bridgewater
4c6b84315e Tiny speedup by removing command.toLowerCase()
This is not necessary as the command itself is only used from inside the code and as they are (now) all lower case it is safe to remove the toLowerCase
2015-09-12 19:17:02 +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
Ruben Bridgewater
a5938f3ade Refactor the test suite and remove duplicated code 2015-09-01 23:28:41 +02:00
Benjamin Coe
a0832c3744 slight refactor from code review
smoke test large list of commands

ported more tests to mocha, some slight cleanup in tests

move sinon and uuid to dev dependencies

finished porting eval tests over to mocha

rebased mocha testing branch with master

ported client and script tests

ported watch tests

ported detect_buffers tests

ported unref tests

ported auth tests over to mocha

ported idle and no_delay tests

ported hlen, hset

continuing marching forward

ported hincrby, sinter, sort, pubsub tests. improved logic in redis-process, I was still occasionally having issues where redis failed to exit.

switch back to default test command

ported del, exists, hlen, keys, randomkey, type

cleanup based on what I've learned so far from refactor. we now start and stop redis less often. moved tests to their final resting place

finished porting node_redis client tests

ported hgetall, mget, msetnx, rename, renamenx, setex, setnx

ported hgetall, mget, msetnx, rename, renamenx, setex, setnx

ported queue tests to mocha

amalgamated some of the helper logic

ported sadd, scard, sismember, srem, utf-8
2015-08-14 21:31:18 -07:00