From 4e5e072c1b2f40f76a0df1b66a4a6949c42641df Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 21 Mar 2022 08:24:07 +0100 Subject: Fix benchmark script --- scripts/benchmark.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/benchmark.ts b/scripts/benchmark.ts index 91e8b865a..37c740131 100644 --- a/scripts/benchmark.ts +++ b/scripts/benchmark.ts @@ -201,12 +201,12 @@ function runBenchmark (options: { headers?: { [ id: string ]: string } expecter: Function }) { - const { method, path, body, expecter, headers } = options + const { method = 'GET', path, body, expecter, headers } = options return new Promise((res, rej) => { autocannon({ url: server.url + path, - method, + method: method, body, connections: 20, headers, -- cgit v1.2.3