You've already forked node-redis
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:
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user