From 85d6b783432e1c58084c3bdebf15cf45384f6572 Mon Sep 17 00:00:00 2001 From: isaacs Date: Mon, 19 Aug 2013 17:43:38 -0700 Subject: [PATCH] test: Remove unnecessary assertion It only fails once in about 1000 times, but that's too many. It's timing dependent, and the main behavior is covered by the other assertions in the test anyway. --- test/simple/test-http-client-agent.js | 1 - 1 file changed, 1 deletion(-) diff --git a/test/simple/test-http-client-agent.js b/test/simple/test-http-client-agent.js index ad5c149d86..49ff77fc9e 100644 --- a/test/simple/test-http-client-agent.js +++ b/test/simple/test-http-client-agent.js @@ -53,7 +53,6 @@ function request(i) { socket.on('close', function() { ++count; if (count < max) { - assert.equal(http.globalAgent.sockets[name].length, max - count); assert.equal(http.globalAgent.sockets[name].indexOf(socket), -1); } else { assert(!http.globalAgent.sockets.hasOwnProperty(name));