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

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
This commit is contained in:
Ruben Bridgewater
2016-03-01 17:14:57 +01:00
parent 535db5231e
commit c2e25a7f71
4 changed files with 151 additions and 593 deletions

View File

@@ -747,7 +747,7 @@ describe("The node_redis client", function () {
enable_offline_queue: false
});
client.on('ready', function () {
client.stream.writable = false;
client.stream.destroy();
client.set('foo', 'bar', function (err, res) {
assert.strictEqual(err.message, "SET can't be processed. Stream not writeable.");
done();