You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
tests: use stream timeout property instead of internal property
fixes broken test
This commit is contained in:
@@ -401,10 +401,10 @@ describe('connection tests', function () {
|
||||
connect_timeout: 1000
|
||||
});
|
||||
process.nextTick(function () {
|
||||
assert.strictEqual(client.stream._idleTimeout, 1000);
|
||||
assert.strictEqual(client.stream.timeout, 1000);
|
||||
});
|
||||
client.on('connect', function () {
|
||||
assert.strictEqual(client.stream._idleTimeout, -1);
|
||||
assert.strictEqual(client.stream.timeout, 0);
|
||||
assert.strictEqual(client.stream.listeners('timeout').length, 0);
|
||||
client.on('ready', done);
|
||||
});
|
||||
|
Reference in New Issue
Block a user