()
| 296 | const totalSize = 1024 * 1024 |
| 297 | let offset = 0 |
| 298 | const sendChunk = () => { |
| 299 | if (offset >= totalSize) { |
| 300 | return |
| 301 | } |
| 302 | req.write(Buffer.alloc(Math.min(chunkSize, totalSize - offset))) |
| 303 | offset += chunkSize |
| 304 | sendTimer = setTimeout(sendChunk, 5) |
| 305 | } |
| 306 | sendChunk() |
| 307 | |
| 308 | await Promise.all([reqPromise, resPromise]) |
no outgoing calls
no test coverage detected
searching dependent graphs…