| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 17a63e1 commit e81b1cc
8 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,4 +4,4 @@ require('../common'); | |||
| 4 | 4 | setTimeout(function() { | |
| 5 | 5 | // eslint-disable-next-line no-undef | |
| 6 | 6 | undefined_reference_error_maker; | |
| 7 | - }); | ||
| 7 | + }, 1); | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,4 +13,4 @@ setTimeout(function() { | |||
| 13 | 13 | setTimeout(function() { | |
| 14 | 14 | throw new Error('setTimeout'); | |
| 15 | 15 | }, 1); | |
| 16 | - }); | ||
| 16 | + }, 1); | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,7 +21,7 @@ stream.pause(); | |||
| 21 | 21 | setTimeout(common.mustCall(function() { | |
| 22 | 22 | stream.on('end', common.mustCall(function() {})); | |
| 23 | 23 | stream.resume(); | |
| 24 | - })); | ||
| 24 | + }), 1); | ||
| 25 | 25 | ||
| 26 | 26 | process.on('exit', function() { | |
| 27 | 27 | assert(calledRead); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -20,7 +20,7 @@ const Readable = require('stream').Readable; | |||
| 20 | 20 | // we're testing what we think we are | |
| 21 | 21 | assert(!r._readableState.reading); | |
| 22 | 22 | r.on('readable', common.mustCall(function() {})); | |
| 23 | - }); | ||
| 23 | + }, 1); | ||
| 24 | 24 | } | |
| 25 | 25 | ||
| 26 | 26 | { | |
@@ -40,7 +40,7 @@ const Readable = require('stream').Readable; | |||
| 40 | 40 | // assert we're testing what we think we are | |
| 41 | 41 | assert(r._readableState.reading); | |
| 42 | 42 | r.on('readable', common.mustCall(function() {})); | |
| 43 | - }); | ||
| 43 | + }, 1); | ||
| 44 | 44 | } | |
| 45 | 45 | ||
| 46 | 46 | { | |
@@ -60,5 +60,5 @@ const Readable = require('stream').Readable; | |||
| 60 | 60 | // assert we're testing what we think we are | |
| 61 | 61 | assert(!r._readableState.reading); | |
| 62 | 62 | r.on('readable', common.mustCall(function() {})); | |
| 63 | - }); | ||
| 63 | + }, 1); | ||
| 64 | 64 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -30,4 +30,4 @@ var int = setInterval(function() { | |||
| 30 | 30 | } else { | |
| 31 | 31 | src.write(i++); | |
| 32 | 32 | } | |
| 33 | - }); | ||
| 33 | + }, 1); | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -46,7 +46,7 @@ function push() { | |||
| 46 | 46 | ||
| 47 | 47 | console.error(' push #%d', pushes); | |
| 48 | 48 | if (r.push(Buffer.allocUnsafe(PUSHSIZE))) | |
| 49 | - setTimeout(push); | ||
| 49 | + setTimeout(push, 1); | ||
| 50 | 50 | } | |
| 51 | 51 | ||
| 52 | 52 | process.on('exit', function() { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,7 +16,7 @@ test._read = function(size) { | |||
| 16 | 16 | var chunk = chunks[n++]; | |
| 17 | 17 | setTimeout(function() { | |
| 18 | 18 | test.push(chunk === undefined ? null : chunk); | |
| 19 | - }); | ||
| 19 | + }, 1); | ||
| 20 | 20 | }; | |
| 21 | 21 | ||
| 22 | 22 | test.on('end', thrower); | |
@@ -31,7 +31,7 @@ test.on('readable', function() { | |||
| 31 | 31 | if (res) { | |
| 32 | 32 | bytesread += res.length; | |
| 33 | 33 | console.error('br=%d len=%d', bytesread, len); | |
| 34 | - setTimeout(next); | ||
| 34 | + setTimeout(next, 1); | ||
| 35 | 35 | } | |
| 36 | 36 | test.read(0); | |
| 37 | 37 | }); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -58,7 +58,7 @@ function runTest(highWaterMark, objectMode, produce) { | |||
| 58 | 58 | w._write = function(chunk, encoding, cb) { | |
| 59 | 59 | console.log('_write', chunk); | |
| 60 | 60 | written.push(chunk); | |
| 61 | - setTimeout(cb); | ||
| 61 | + setTimeout(cb, 1); | ||
| 62 | 62 | }; | |
| 63 | 63 | ||
| 64 | 64 | w.on('finish', function() { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments