From 15a763152f9d392cb80692262f8de5ef8ae15495 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Wed, 11 Aug 2021 10:20:47 -0400 Subject: chore: move test files to testdata directory (#11601) --- cli/tests/tla3/timeout_loop.js | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 cli/tests/tla3/timeout_loop.js (limited to 'cli/tests/tla3/timeout_loop.js') diff --git a/cli/tests/tla3/timeout_loop.js b/cli/tests/tla3/timeout_loop.js deleted file mode 100644 index 860e6cd2a..000000000 --- a/cli/tests/tla3/timeout_loop.js +++ /dev/null @@ -1,23 +0,0 @@ -export const foo = "foo"; - -export function delay(ms) { - return new Promise((res) => - setTimeout(() => { - res(); - }, ms) - ); -} - -let i = 0; - -async function timeoutLoop() { - await delay(1000); - console.log("timeout loop", i); - i++; - if (i > 5) { - return; - } - timeoutLoop(); -} - -timeoutLoop(); -- cgit v1.2.3