summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
authorColin Harrington <colin.harrington@gmail.com>2020-05-21 06:08:43 -0500
committerGitHub <noreply@github.com>2020-05-21 13:08:43 +0200
commitaea5b12baedd5156850fd97bf2b5085da0927b00 (patch)
tree55bbf7b863a9cdd002c16b5bdf08bdca29c50556 /cli/tests
parent5f9c1c7da6047ee8612e71f8ef4ca9c950b3a699 (diff)
ci: Errors in benchmarks should fail CI (#5422)
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/workers_round_robin_bench.ts2
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> {