()
| 6 | const { channel } = require('diagnostics_channel'); |
| 7 | |
| 8 | function test() { |
| 9 | const testChannel = channel('test-gc'); |
| 10 | |
| 11 | setTimeout(common.mustCall(() => { |
| 12 | const testChannel2 = channel('test-gc'); |
| 13 | |
| 14 | assert.ok(testChannel === testChannel2, 'Channel instances must be the same'); |
| 15 | })); |
| 16 | } |
| 17 | |
| 18 | test(); |
| 19 |
no test coverage detected
searching dependent graphs…