1
0
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:
Salakar
2020-02-06 21:25:28 +00:00
parent 1f5555d96e
commit c78e55d874

View File

@@ -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);
});