From 37923cbd66988634ac7f763da19de6171f735280 Mon Sep 17 00:00:00 2001 From: Kate Goldenring Date: Tue, 5 Nov 2024 10:24:25 -0800 Subject: [PATCH] troubleshoot resource intensive example tags Signed-off-by: Kate Goldenring --- tests/scripts/resource-intensive.js | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/tests/scripts/resource-intensive.js b/tests/scripts/resource-intensive.js index 4112d70..3ada591 100644 --- a/tests/scripts/resource-intensive.js +++ b/tests/scripts/resource-intensive.js @@ -68,13 +68,25 @@ export function setup() { export default function () { let endpoint = deploy.serviceEndpointForApp(name, namespace, route); - let res = http.get(`${endpoint}?mem=${memoryKib}`, { tags: {memory_kib: memoryKib} }); + let res = http.get(`${endpoint}?mem=${memoryKib}`, { + tags: { + memory_kib: memoryKib, + }, + }); check(res, { "response code was 200": (res) => res.status == 200 }, { memory_kib: memoryKib }); sleep(delay); - res = http.get(`${endpoint}?cpuIter=${cpuIter}`, { tags: {cpu_iter: cpuIter} }); + res = http.get(`${endpoint}?cpuIter=${cpuIter}`, { + tags: { + cpu_iter: cpuIter, + }, + }); check(res, { "response code was 200": (res) => res.status == 200 }, { cpu_iter: cpuIter }); sleep(delay); - res = http.get(`${endpoint}?sleep=${sleepMs}`, { tags: {sleep: sleepMs} }); + res = http.get(`${endpoint}?sleep=${sleepMs}`, { + tags: { + sleep: sleepMs, + }, + }); check(res, { "response code was 200": (res) => res.status == 200 }, { sleep_ms: sleepMs }); sleep(delay); }