diff options
author | Andy Hayden <andyhayden1@gmail.com> | 2018-10-03 15:21:23 -0700 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2018-10-03 16:05:00 -0700 |
commit | 47508c72071d8e4655da5601585dc1c988d34850 (patch) | |
tree | 4fa2b9427ea9db7e7b34072a7f3f77995c83e0f7 /js/timers_test.ts | |
parent | ea87034e2695f4b5d20e9e27392599bce36e6dd2 (diff) |
Update timer test to use #497 test case
This behavior was fixed by #885.
Diffstat (limited to 'js/timers_test.ts')
-rw-r--r-- | js/timers_test.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/timers_test.ts b/js/timers_test.ts index 6452697e0..8d9eb0e1a 100644 --- a/js/timers_test.ts +++ b/js/timers_test.ts @@ -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); }); }); |