From 001be8c5f3f29ab9b0648a54154c9dccd22b5fec Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 18 Sep 2023 12:52:55 +0200 Subject: [PATCH] fix: add missing file for external benchmark MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- benchmarks/versus-external-pools/utils.mjs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 benchmarks/versus-external-pools/utils.mjs diff --git a/benchmarks/versus-external-pools/utils.mjs b/benchmarks/versus-external-pools/utils.mjs new file mode 100644 index 00000000..3d26ea16 --- /dev/null +++ b/benchmarks/versus-external-pools/utils.mjs @@ -0,0 +1,9 @@ +export const executeAsyncFn = async fn => { + try { + await fn() + } catch (e) { + console.error(e) + // eslint-disable-next-line n/no-process-exit + process.exit(1) + } +} -- 2.34.1