mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
test: relax timer check in test-report-uv-handles.js
The underlying JavaScript runtime may schedule tasks at its discretion so there may be more timer handles than the one created by the test. PR-URL: https://github.com/nodejs/node/pull/26434 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
This commit is contained in:
1 parent
ca2328d26a
commit
a67fea52c4
1 file changed
+2
-1
@@ -133,7 +133,7 @@ if (process.argv[2] === 'child') {
|
||||
}
|
||||
assert(handle.is_referenced);
|
||||
}, 3),
|
||||
timer: common.mustCall(function timer_validator(handle) {
|
||||
timer: common.mustCallAtLeast(function timer_validator(handle) {
|
||||
assert(!handle.is_referenced);
|
||||
assert.strictEqual(handle.repeat, 0);
|
||||
}),
|
||||
@@ -143,6 +143,7 @@ if (process.argv[2] === 'child') {
|
||||
assert(handle.is_referenced);
|
||||
}),
|
||||
};
|
||||
console.log(report.libuv);
|
||||
for (const entry of report.libuv) {
|
||||
if (validators[entry.type]) validators[entry.type](entry);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user