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

Fix domain handling and tls camelCase settings

Fixes #1106
Fixes #1103
Closes #1104
This commit is contained in:
Ruben Bridgewater
2016-10-30 21:29:35 +01:00
parent d8d0e2d3e3
commit 41d26dc0c8
5 changed files with 33 additions and 5 deletions

View File

@@ -623,6 +623,19 @@ describe('The node_redis client', function () {
});
});
it('keeps the same domain by using the offline queue', function (done) {
client.end(true);
client = redis.createClient();
var testDomain = require('domain').create();
testDomain.run(function () {
client.set('FOOBAR', 'def', function () {
assert.strictEqual(process.domain, testDomain);
done();
});
});
require('domain').create();
});
it('catches all errors from within the domain', function (done) {
var domain = require('domain').create();