Skip to content

Commit b87fe25

Browse files
fossamagnaMylesBorins
authored andcommitted
test: change from setTimeout to setImmediate
This is a part of Code And Learn at NodeFest 2016 Challenge Fixes: nodejs/code-and-learn#58 PR-URL: #9578 Reviewed-By: Yosuke Furukawa <[email protected]> Reviewed-By: Shigeki Ohtsu <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent eca12d4 commit b87fe25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-stream-unshift-empty-chunk.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var chunk = new Buffer(10);
1212
chunk.fill('x');
1313

1414
r._read = function(n) {
15-
setTimeout(function() {
15+
setImmediate(function() {
1616
r.push(--nChunks === 0 ? null : chunk);
1717
});
1818
};

0 commit comments

Comments
 (0)