MCPcopy Index your code
hub / github.com/nodejs/node / #createTimeout

Method #createTimeout

lib/internal/test_runner/test.js:213–221  ·  view source on GitHub ↗
(reject)

Source from the content-addressed store, hash-verified

211 }
212
213 #createTimeout(reject) {
214 return setTimeout(() => {
215 const err = new ERR_TEST_FAILURE(
216 `plan timed out after ${this.wait}ms with ${this.actual} assertions when expecting ${this.expected}`,
217 kTestTimeoutFailure,
218 );
219 reject(err);
220 }, this.wait);
221 }
222
223 check() {
224 if (this.#planMet()) {

Callers 1

checkMethod · 0.95

Calls 2

setTimeoutFunction · 0.50
rejectFunction · 0.50

Tested by

no test coverage detected