From 0cab669953aa22ad039c7a3fba8af953ac96f1cd Mon Sep 17 00:00:00 2001 From: hasaji <hanzla.sajid@holi.team> Date: Fri, 11 Oct 2024 11:53:27 +0200 Subject: [PATCH] code cleanup --- scripts/utils.js | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/scripts/utils.js b/scripts/utils.js index b942c5d..f1d96a0 100644 --- a/scripts/utils.js +++ b/scripts/utils.js @@ -85,21 +85,6 @@ export function addBatchWithRetries(requests) { } -// export function checkResponse(response) { -// const checkResponse = check(response, { -// 'is status 200': (r) => r.status === 200, -// 'has no errors': (r) => JSON.parse(r.body) && JSON.parse(r.body).errors === undefined, -// }) - -// if (JSON.parse(response.body) && JSON.parse(response.body).errors !== undefined) { -// console.warn('errors in response:', JSON.parse(response.body).errors) -// } - -// checkFailureRate.add(!checkResponse) -// timeToFirstByte.add(response.timings.waiting, { -// ttfbURL: response.url, -// }) -// } export function checkResponse(response, retryCount = MAX_RETRIES) { let checkResponse = check(response, { 'is status 200': (r) => r.status === 200, -- GitLab