Skip to content

Commit

Permalink
Merge pull request #90 from kate-goldenring/refactor-resource-intensi…
Browse files Browse the repository at this point in the history
…ve-tagging

troubleshoot resource intensive example tags
  • Loading branch information
kate-goldenring authored Nov 5, 2024
2 parents 5b325fe + 37923cb commit b07fad4
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions tests/scripts/resource-intensive.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit b07fad4

Please sign in to comment.