X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=benchmarks%2Fbenchmarks-utils.js;h=48311a3f04b773c0d6f540eaf659b2b00f3e08d7;hb=4b3771494fb57270a5128e7669f52f4ca3880f6c;hp=aaf7521ff3044807e02078c2cde0f45c584586b1;hpb=ab7bb4f826a86d6d121b8902d6449f9fc4e59d70;p=poolifier.git diff --git a/benchmarks/benchmarks-utils.js b/benchmarks/benchmarks-utils.js index aaf7521f..48311a3f 100644 --- a/benchmarks/benchmarks-utils.js +++ b/benchmarks/benchmarks-utils.js @@ -64,7 +64,7 @@ const runPoolifierPool = async (pool, { taskExecutions, workerData }) => { if (executions === taskExecutions) { resolve({ ok: 1 }) } - return null + return undefined }) .catch(err => { console.error(err) @@ -151,6 +151,7 @@ const runPoolifierPoolBenchmark = async ( LIST_FORMATTER.format(this.filter('fastest').map('name')) ) await pool.destroy() + pool = undefined resolve() }) .run({ async: true })