From 0b78dbcbe95c7f7ca1f192754d6ebce74152ce50 Mon Sep 17 00:00:00 2001 From: JOLIMAITRE Matthieu Date: Fri, 20 Jan 2023 08:46:02 +0100 Subject: [PATCH] fixed concurency on reduction --- run.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run.ts b/run.ts index 64b7459..8cb3ef0 100644 --- a/run.ts +++ b/run.ts @@ -28,7 +28,8 @@ const raw_sources = await Promise.all( input_files.map((f) => Deno.readTextFile(f)), ); console.log(col.blue("---- diff to runnable sections ----")); -const sources = await Promise.all(raw_sources.map(reduce_to_runable)); +const sources = [] as string[]; +for (const s of raw_sources) sources.push(await reduce_to_runable(s)); const prelude = sources.join("\n"); const tests_dir = cli.parameter_value("tests")!;