joyent/node — pull request #4054 by shigeki (2012-09-25 06:27:32+00:00)
Title: test: fix failing due to too early timeout

The current timeout of test/simple/test-http-client-timeout-agent.js is just 150[msec] until finishing all 30 http test requests but it often too early to finish them on a slow machine as
````
> ./node test/simple/test-http-client-timeout-agent.js
res#0 data:0
(snip)
req#23 error
done=25 sent=30

assert.js:102
throw new assert.AssertionError({
^
AssertionError: timeout on http request called too much
````
This patch extends its timeout to 15sec but finish testing just after completing all test requests.
````
> ./node test/simple/test-http-client-timeout-agent.js
res#0 data:0
(snip)
req#29 error
done=30 sent=30
````