| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 7f04377 commit 46bbabe
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -33,7 +33,9 @@ r.on('readable', function() { | |||
| 33 | 33 | rs.length); | |
| 34 | 34 | }); | |
| 35 | 35 | ||
| 36 | - r.on('end', common.mustCall(function() {})); | ||
| 36 | + r.on('end', common.mustCall(function() { | ||
| 37 | + assert.strictEqual(pushes, PUSHCOUNT + 1); | ||
| 38 | + })); | ||
| 37 | 39 | ||
| 38 | 40 | let pushes = 0; | |
| 39 | 41 | function push() { | |
@@ -49,7 +51,3 @@ function push() { | |||
| 49 | 51 | if (r.push(Buffer.allocUnsafe(PUSHSIZE))) | |
| 50 | 52 | setTimeout(push, 1); | |
| 51 | 53 | } | |
| 52 | - | ||
| 53 | - process.on('exit', function() { | ||
| 54 | - assert.strictEqual(pushes, PUSHCOUNT + 1); | ||
| 55 | - }); | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments