Browse Source

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.
v0.11.6-release
isaacs 12 years ago
parent
commit
85d6b78343
  1. 1
      test/simple/test-http-client-agent.js

1
test/simple/test-http-client-agent.js

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

Loading…
Cancel
Save