From 1b3ebc32d7f64cf7a8b8a9cfc315d30bb74c04f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Geisendo=CC=88rfer?= Date: Tue, 26 Jul 2011 17:19:05 +0200 Subject: [PATCH] Fix test-net-stream.js I broke this in 09ee293. --- test/simple/test-net-stream.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/simple/test-net-stream.js b/test/simple/test-net-stream.js index 868e336b9c..a3b5afecf4 100644 --- a/test/simple/test-net-stream.js +++ b/test/simple/test-net-stream.js @@ -22,14 +22,16 @@ var common = require('../common'); var assert = require('assert'); -var Stream = require('net').Stream; +var net = require('net'); -var s = new Stream(); +var s = new net.Stream(); // test that destroy called on a stream with a server only ever decrements the // server connection count once -s.server = { connections: 10 } +s.server = new net.Server(); +s.server.connections = 10; + assert.equal(10, s.server.connections); s.destroy() assert.equal(9, s.server.connections);