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.
This commit is contained in:
isaacs 2013-08-19 17:43:38 -07:00
parent 6ed861dd7f
commit 85d6b78343

View File

@ -53,7 +53,6 @@ function request(i) {
socket.on('close', function() { socket.on('close', function() {
++count; ++count;
if (count < max) { if (count < max) {
assert.equal(http.globalAgent.sockets[name].length, max - count);
assert.equal(http.globalAgent.sockets[name].indexOf(socket), -1); assert.equal(http.globalAgent.sockets[name].indexOf(socket), -1);
} else { } else {
assert(!http.globalAgent.sockets.hasOwnProperty(name)); assert(!http.globalAgent.sockets.hasOwnProperty(name));