diff options
author | Richard Lau <riclau@uk.ibm.com> | 2019-03-04 12:16:07 -0500 |
---|---|---|
committer | Richard Lau <riclau@uk.ibm.com> | 2019-03-06 16:26:44 -0500 |
commit | 80209cc4c991d4392f776a887c06f84c1319923b (patch) | |
tree | 7475b3dc2bb04a086b60408b5211d1332852408b /test/report/test-report-uv-handles.js | |
parent | 05606c669053ea957d7e0c7dc134f3a79f1fcf75 (diff) | |
download | android-node-v8-80209cc4c991d4392f776a887c06f84c1319923b.tar.gz android-node-v8-80209cc4c991d4392f776a887c06f84c1319923b.tar.bz2 android-node-v8-80209cc4c991d4392f776a887c06f84c1319923b.zip |
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>
Diffstat (limited to 'test/report/test-report-uv-handles.js')
-rw-r--r-- | test/report/test-report-uv-handles.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/report/test-report-uv-handles.js b/test/report/test-report-uv-handles.js index 6473b630f5..65468bb48d 100644 --- a/test/report/test-report-uv-handles.js +++ b/test/report/test-report-uv-handles.js @@ -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); } |