MCPcopy Index your code
hub / github.com/nodejs/node / test

Function test

test/parallel/test-diagnostics-channel-gc-race-condition.js:8–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6const { channel } = require('diagnostics_channel');
7
8function 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
18test();
19

Calls 3

channelFunction · 0.85
setTimeoutFunction · 0.50
okMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…