| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 05cbd8f commit 3032f0f
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -47,6 +47,7 @@ server.listen(0, function() { | |||
| 47 | 47 | } | |
| 48 | 48 | ||
| 49 | 49 | req.on('error', common.mustCall(function(er) { | |
| 50 | + assert.strictEqual(req.res, null); | ||
| 50 | 51 | switch (er.code) { | |
| 51 | 52 | // This is the expected case | |
| 52 | 53 | case 'ECONNRESET': | |
@@ -73,10 +74,7 @@ server.listen(0, function() { | |||
| 73 | 74 | server.close(); | |
| 74 | 75 | })); | |
| 75 | 76 | ||
| 76 | - req.on('response', function(res) { | ||
| 77 | - res.on('data', common.mustNotCall('Should not receive response data')); | ||
| 78 | - res.on('end', common.mustNotCall('Should not receive response end')); | ||
| 79 | - }); | ||
| 77 | + req.on('response', common.mustNotCall()); | ||
| 80 | 78 | ||
| 81 | 79 | write(); | |
| 82 | 80 | }); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments