diff options
Diffstat (limited to 'cli')
-rw-r--r-- | cli/tests/workers_round_robin_bench.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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<void> { |