From 57144a00a100cb0a6996d801e7dfd507e699b6f8 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Mon, 30 Jun 2025 11:24:44 -0400 Subject: [PATCH] try this --- .../tests/runtime-runes/samples/get-abort-signal/_config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/svelte/tests/runtime-runes/samples/get-abort-signal/_config.js b/packages/svelte/tests/runtime-runes/samples/get-abort-signal/_config.js index 0a7ce457dc..45d4cef567 100644 --- a/packages/svelte/tests/runtime-runes/samples/get-abort-signal/_config.js +++ b/packages/svelte/tests/runtime-runes/samples/get-abort-signal/_config.js @@ -6,11 +6,11 @@ export default test({ async test({ assert, target }) { const [button] = target.querySelectorAll('button'); - await new Promise((f) => setTimeout(f)); // TODO replace with `tick` once `await` lands + await new Promise((f) => setTimeout(f, 50)); // TODO replace with `tick` once `await` lands assert.htmlEqual(target.innerHTML, '

0

'); button.click(); - await new Promise((f) => setTimeout(f)); // TODO replace with `tick` once `await` lands + await new Promise((f) => setTimeout(f, 50)); // TODO replace with `tick` once `await` lands assert.htmlEqual(target.innerHTML, '

2

'); } });