From 6dcb19b0037d9d4e1e9b08a95d20e0d3da6fa026 Mon Sep 17 00:00:00 2001 From: Tim Reichen Date: Sun, 22 May 2022 16:18:10 +0200 Subject: [PATCH] chore: replace console.log with array and assertEquals (#2261) --- async/pool_test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/async/pool_test.ts b/async/pool_test.ts index 79891ec30..f8d9b06a3 100644 --- a/async/pool_test.ts +++ b/async/pool_test.ts @@ -15,9 +15,11 @@ Deno.test("[async] pooledMap", async function () { [1, 2, 3], (i) => new Promise((r) => setTimeout(() => r(i), 1000)), ); + const array = []; for await (const value of results) { - console.log(value); + array.push(value); } + assertEquals(array, [1, 2, 3]); const diff = new Date().getTime() - start.getTime(); assert(diff >= 2000); assert(diff < 3000);