Skip to content

Commit 4287ab2

Browse files
committed
improvement(sandbox): cover interval reuse in the timer cap e2e check
1 parent d43ee2f commit 4287ab2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/sim/scripts/test-isolated-vm-remote-e2e.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ async function run() {
533533
intervals.error?.message
534534
)
535535
const reused = await runTask(
536-
'for (let round = 0; round < 3; round++) { const ids = []; for (let i = 0; i < 1000; i++) ids.push(setTimeout(() => {}, 60000)); ids.forEach(clearTimeout) }'
536+
'for (let round = 0; round < 3; round++) { const ids = []; for (let i = 0; i < 1000; i++) ids.push(setTimeout(() => {}, 60000)); ids.forEach(clearTimeout); const intervals = []; for (let i = 0; i < 50; i++) intervals.push(setInterval(() => {}, 60000)); intervals.forEach(clearInterval) }'
537537
)
538538
assert.equal(reused.error, undefined, reused.error?.message)
539539
})

0 commit comments

Comments
 (0)