mirror of
https://github.com/denoland/deno.git
synced 2024-11-26 16:09:27 -05:00
Update timer test to use #497 test case
This behavior was fixed by #885.
This commit is contained in:
parent
ea87034e26
commit
47508c7207
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue