From aea5b12baedd5156850fd97bf2b5085da0927b00 Mon Sep 17 00:00:00 2001 From: Colin Harrington Date: Thu, 21 May 2020 06:08:43 -0500 Subject: ci: Errors in benchmarks should fail CI (#5422) --- cli/tests/workers_round_robin_bench.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/tests') diff --git a/cli/tests/workers_round_robin_bench.ts b/cli/tests/workers_round_robin_bench.ts index e8f5b2d30..c7a683459 100644 --- a/cli/tests/workers_round_robin_bench.ts +++ b/cli/tests/workers_round_robin_bench.ts @@ -31,7 +31,7 @@ function handleAsyncMsgFromWorker( if (promise === null) { throw new Error(`Failed to find promise: cmdId: ${msg.cmdId}, msg: ${msg}`); } - promise.resolve(data); + promise?.resolve(data); } async function main(): Promise { -- cgit v1.2.3