()
| 5 | const net = require('net'); |
| 6 | |
| 7 | function createConnection() { |
| 8 | const socket = new net.Socket(); |
| 9 | |
| 10 | process.nextTick(function() { |
| 11 | socket.destroy(new Error('Oops')); |
| 12 | }); |
| 13 | |
| 14 | return socket; |
| 15 | } |
| 16 | |
| 17 | { |
| 18 | const req = http.get({ createConnection }); |
no test coverage detected
searching dependent graphs…