From 47508c72071d8e4655da5601585dc1c988d34850 Mon Sep 17 00:00:00 2001 From: Andy Hayden Date: Wed, 3 Oct 2018 15:21:23 -0700 Subject: [PATCH] Update timer test to use #497 test case This behavior was fixed by #885. --- js/timers_test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/timers_test.ts b/js/timers_test.ts index 6452697e0b..8d9eb0e1a9 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); }); });