| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,6 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | ||
| 3 | 3 | const common = require('../common'); | |
| 4 | - const assert = require('assert'); | ||
| 5 | 4 | const http = require('http'); | |
| 6 | 5 | ||
| 7 | 6 | const server = http.createServer((req, res) => { | |
@@ -11,7 +10,7 @@ const server = http.createServer((req, res) => { | |||
| 11 | 10 | res.flushHeaders(); | |
| 12 | 11 | ||
| 13 | 12 | req.setTimeout(common.platformTimeout(200), () => { | |
| 14 | - assert(false, 'Should not happen'); | ||
| 13 | + common.fail('Request timeout should not fire'); | ||
| 15 | 14 | }); | |
| 16 | 15 | req.resume(); | |
| 17 | 16 | req.once('end', common.mustCall(() => { | |
@@ -30,7 +29,7 @@ server.listen(0, common.mustCall(() => { | |||
| 30 | 29 | setTimeout(() => { | |
| 31 | 30 | clearInterval(interval); | |
| 32 | 31 | req.end(); | |
| 33 | - }, common.platformTimeout(400)); | ||
| 32 | + }, common.platformTimeout(200)); | ||
| 34 | 33 | }); | |
| 35 | 34 | req.write('.'); | |
| 36 | 35 | })); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments