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

29 Commits

Author SHA1 Message Date
Ruben Bridgewater
340cddb6d1 Use process.nextTick to uncork 2016-04-29 06:11:12 +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
0dc45bd0a3 Improve pub sub mode further 2016-04-29 04:10:23 +02:00
Ruben Bridgewater
cd58e1fd89 Implement message_buffer and pmessage_buffer events 2016-04-29 04:10:23 +02:00
Ruben Bridgewater
228573b8d7 Support __proto__ and similar as object attribute in hgetall 2016-04-23 12:54:43 +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
79c1767f86 Fix pubsub further
Unsubscribing from all channels did not work properly with reconnect
Pub sub did not work properly with the new `string_numbers` option
2016-03-31 19:23:46 +02: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
12579e5e8e Test pubsub numsub
Closes #740
2016-03-26 04:53:27 +01:00
Ruben Bridgewater
7a5a4aa535 Fix pub sub mode
There is likely a better and more performant way to fix this but this works so far
and should be good enough to release and improve later.

Make test more robust

Add another test
2016-03-26 02:14:10 +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
33d5981ebf Remove .only ... 2015-11-27 21:42:23 +01:00
Ruben Bridgewater
59984136fe Update changelog and fix a test 2015-11-27 21:40:32 +01:00
Ruben Bridgewater
a0cc715206 Ignore still running commands for pub sub tests after the test ended 2015-11-24 21:23:19 +01:00
Ruben Bridgewater
4ba72703fd Fix test for appveyor 2015-11-24 21:01:54 +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
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
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
06f57fd1d9 Add some more notes and tests 2015-10-12 17:21:58 +02:00
Ruben Bridgewater
90033bdd00 Fix some tests 2015-10-10 19:37:42 +02:00
Ruben Bridgewater
25113e6759 Fix test 2015-10-03 04:13:04 +02:00
Ruben Bridgewater
e8d9858e29 Add disable_resubscribingg option. Fixes #472 2015-10-02 23:28:59 +02:00
pbihler
97db227a8d Fix for channel names with spaces. Fixes #691
Channel names with spaces were not properly resubscribed after a reconnection.
Conflicts:
	index.js
2015-09-18 02:44:29 +02: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
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
d1558eddc2 add test demonstrating psubscribe, and pmessage 2015-08-16 18:02:26 -07: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