| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent af01417 commit 97e0efe
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -34,13 +34,13 @@ test(function serverKeepAliveTimeoutWithPipeline(cb) { | |||
| 34 | 34 | common.mustCall((req, res) => { | |
| 35 | 35 | res.end(); | |
| 36 | 36 | }, 3)); | |
| 37 | - server.setTimeout(500, common.mustCall((socket) => { | ||
| 37 | + server.setTimeout(common.platformTimeout(500), common.mustCall((socket) => { | ||
| 38 | 38 | // End this test and call `run()` for the next test (if any). | |
| 39 | 39 | socket.destroy(); | |
| 40 | 40 | server.close(); | |
| 41 | 41 | cb(); | |
| 42 | 42 | })); | |
| 43 | - server.keepAliveTimeout = 50; | ||
| 43 | + server.keepAliveTimeout = common.platformTimeout(50); | ||
| 44 | 44 | server.listen(0, common.mustCall(() => { | |
| 45 | 45 | const options = { | |
| 46 | 46 | port: server.address().port, | |
@@ -57,13 +57,13 @@ test(function serverKeepAliveTimeoutWithPipeline(cb) { | |||
| 57 | 57 | ||
| 58 | 58 | test(function serverNoEndKeepAliveTimeoutWithPipeline(cb) { | |
| 59 | 59 | const server = https.createServer(serverOptions, common.mustCall(3)); | |
| 60 | - server.setTimeout(500, common.mustCall((socket) => { | ||
| 60 | + server.setTimeout(common.platformTimeout(500), common.mustCall((socket) => { | ||
| 61 | 61 | // End this test and call `run()` for the next test (if any). | |
| 62 | 62 | socket.destroy(); | |
| 63 | 63 | server.close(); | |
| 64 | 64 | cb(); | |
| 65 | 65 | })); | |
| 66 | - server.keepAliveTimeout = 50; | ||
| 66 | + server.keepAliveTimeout = common.platformTimeout(50); | ||
| 67 | 67 | server.listen(0, common.mustCall(() => { | |
| 68 | 68 | const options = { | |
| 69 | 69 | port: server.address().port, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments