Skip to content

Commit c78e55d

Browse files
committed
tests: use stream timeout property instead of internal property
fixes broken test
1 parent 1f5555d commit c78e55d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/connection.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,10 +401,10 @@ describe('connection tests', function () {
401401
connect_timeout: 1000
402402
});
403403
process.nextTick(function () {
404-
assert.strictEqual(client.stream._idleTimeout, 1000);
404+
assert.strictEqual(client.stream.timeout, 1000);
405405
});
406406
client.on('connect', function () {
407-
assert.strictEqual(client.stream._idleTimeout, -1);
407+
assert.strictEqual(client.stream.timeout, 0);
408408
assert.strictEqual(client.stream.listeners('timeout').length, 0);
409409
client.on('ready', done);
410410
});

0 commit comments

Comments
 (0)