test: Fix test-fs-read-stream-fd-leak race cond
authorJunliang Yan <jyan@ca.ibm.com>
Tue, 6 Oct 2015 18:21:13 +0000 (14:21 -0400)
committerJames M Snell <jasnell@gmail.com>
Thu, 8 Oct 2015 21:50:25 +0000 (14:50 -0700)
commit7c85557ef0ec9907e74f6a331d6694fea3fcd271
tree9f6841567da74ddc4dbe785e1a074fef0e6b6ce8
parent1850879b0e6d5e1e52e35790ab448c4c6dee34f0
test: Fix test-fs-read-stream-fd-leak race cond

Fix intermittent test failure on slower machines.
Gives test longer time to complete but checks
at regular intervals so that the test only
runs longer on slower machines or in the failure
case.

PR-URL: https://github.com/nodejs/node/pull/3218
Fixes: https://github.com/nodejs/node/issues/3215
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: James Snell <jasnell@gmail.com>>
test/parallel/test-fs-read-stream-fd-leak.js