From b62f799e031d83275fac8215e1ce6656e714ee64 Mon Sep 17 00:00:00 2001 From: "masashi.g" Date: Sat, 12 Nov 2016 22:56:19 +0900 Subject: [PATCH] test: use setImmediate() in test of stream2 use setImmediate() insted of setTimeout() in test of stream2 push. The test is in test/parallel/test-stream2-push.js --- test/parallel/test-stream2-push.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-stream2-push.js b/test/parallel/test-stream2-push.js index a7ff95e7482015..445a186715b659 100644 --- a/test/parallel/test-stream2-push.js +++ b/test/parallel/test-stream2-push.js @@ -111,7 +111,7 @@ function end() { source.emit('end'); assert(!reading); writer.end(stream.read()); - setTimeout(function() { + setImmediate(function() { assert(ended); }); }