summaryrefslogtreecommitdiff
path: root/testing/bench.ts
diff options
context:
space:
mode:
Diffstat (limited to 'testing/bench.ts')
-rw-r--r--testing/bench.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/bench.ts b/testing/bench.ts
index 0094f6292..5b396df0e 100644
--- a/testing/bench.ts
+++ b/testing/bench.ts
@@ -96,7 +96,7 @@ export async function runBenchmarks({
}: BenchmarkRunOptions = {}): Promise<void> {
// Filtering candidates by the "only" and "skip" constraint
const benchmarks: BenchmarkDefinition[] = candidates.filter(
- ({ name }) => only.test(name) && !skip.test(name)
+ ({ name }): boolean => only.test(name) && !skip.test(name)
);
// Init main counters and error flag
const filtered = candidates.length - benchmarks.length;
@@ -164,7 +164,7 @@ export async function runBenchmarks({
);
// Making sure the program exit code is not zero in case of failure
if (failed) {
- setTimeout(() => exit(1), 0);
+ setTimeout((): void => exit(1), 0);
}
}