Update timer test to use #497 test case

This behavior was fixed by #885.
This commit is contained in:
Andy Hayden 2018-10-03 15:21:23 -07:00 committed by Bert Belder
parent ea87034e26
commit 47508c7207
No known key found for this signature in database
GPG key ID: 7A77887B2E2ED461

View file

@ -114,11 +114,11 @@ test(async function intervalCancelSuccess() {
assertEqual(count, 0);
});
test(async function intervalCancelSuccess2() {
test(async function intervalOrdering() {
const timers = [];
let timeouts = 0;
for (let i = 0; i < 5; i++) {
timers[i] = setTimeout(onTimeout, 20 * i);
for (let i = 0; i < 10; i++) {
timers[i] = setTimeout(onTimeout, 20);
}
function onTimeout() {
++timeouts;
@ -134,7 +134,7 @@ test(async function intervalCancelSuccess2() {
} catch (e) {
reject(e);
}
}, 200);
}, 100);
});
});