MCPcopy Create free account
hub / github.com/nodejs/node / testWait

Function testWait

test/parallel/test-timers-promises-scheduler.js:18–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16}));
17
18async function testWait() {
19 let value = 0;
20 setTimeout(() => value++, 10);
21 await scheduler.wait(15);
22 assert.strictEqual(value, 1);
23}
24
25testWait().then(common.mustCall());
26

Calls 2

setTimeoutFunction · 0.50
waitMethod · 0.45

Tested by

no test coverage detected