()
| 17 | hooks.enable(); |
| 18 | dns.lookupService('127.0.0.1', 80, common.mustCall(onlookupService)); |
| 19 | function onlookupService() { |
| 20 | // We don't care about the error here in order to allow |
| 21 | // tests to run offline (lookup will fail in that case and the err be set) |
| 22 | |
| 23 | const as = hooks.activitiesOfTypes('GETNAMEINFOREQWRAP'); |
| 24 | assert.strictEqual(as.length, 1); |
| 25 | |
| 26 | const a = as[0]; |
| 27 | assert.strictEqual(a.type, 'GETNAMEINFOREQWRAP'); |
| 28 | assert.strictEqual(typeof a.uid, 'number'); |
| 29 | assert.strictEqual(a.triggerAsyncId, 1); |
| 30 | checkInvocations(a, { init: 1, before: 1 }, |
| 31 | 'while in onlookupService callback'); |
| 32 | tick(2); |
| 33 | } |
| 34 | |
| 35 | process.on('exit', onexit); |
| 36 |
nothing calls this directly
no test coverage detected