()
| 191 | } |
| 192 | |
| 193 | const testNetworkInspection = async () => { |
| 194 | // HTTP |
| 195 | await testRequest(`http://127.0.0.1:${httpServer.address().port}/hello-world`); |
| 196 | session.removeAllListeners(); |
| 197 | // HTTPS |
| 198 | await testRequest(`https://127.0.0.1:${httpsServer.address().port}/hello-world`); |
| 199 | session.removeAllListeners(); |
| 200 | // HTTP with invalid host |
| 201 | await testRequestError(`http://${addresses.INVALID_HOST}/`); |
| 202 | session.removeAllListeners(); |
| 203 | // HTTPS with invalid host |
| 204 | await testRequestError(`https://${addresses.INVALID_HOST}/`); |
| 205 | session.removeAllListeners(); |
| 206 | }; |
| 207 | |
| 208 | httpServer.listen(0, () => { |
| 209 | httpsServer.listen(0, async () => { |
no test coverage detected
searching dependent graphs…