(path, callback)
| 47 | }, 4)); |
| 48 | |
| 49 | function get(path, callback) { |
| 50 | return http.get({ |
| 51 | host: 'localhost', |
| 52 | port: server.address().port, |
| 53 | agent: agent, |
| 54 | path: path |
| 55 | }, callback).on('socket', common.mustCall(checkListeners)); |
| 56 | } |
| 57 | |
| 58 | function checkDataAndSockets(body) { |
| 59 | assert.strictEqual(body.toString(), 'hello world'); |
no test coverage detected