Skip to content

Commit a67fea5

Browse files
richardlauBridgeAR
authored andcommitted
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: #26434 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
1 parent ca2328d commit a67fea5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/report/test-report-uv-handles.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ if (process.argv[2] === 'child') {
133133
}
134134
assert(handle.is_referenced);
135135
}, 3),
136-
timer: common.mustCall(function timer_validator(handle) {
136+
timer: common.mustCallAtLeast(function timer_validator(handle) {
137137
assert(!handle.is_referenced);
138138
assert.strictEqual(handle.repeat, 0);
139139
}),
@@ -143,6 +143,7 @@ if (process.argv[2] === 'child') {
143143
assert(handle.is_referenced);
144144
}),
145145
};
146+
console.log(report.libuv);
146147
for (const entry of report.libuv) {
147148
if (validators[entry.type]) validators[entry.type](entry);
148149
}

0 commit comments

Comments
 (0)