fix(benchmark): Benchmark improvements (#11290)

This commit is contained in:
Tomi Turtiainen
2024-10-17 12:37:00 +02:00
committed by GitHub
parent be50a9ac44
commit 0dd15cbe8d
9 changed files with 35 additions and 20 deletions

View File

@@ -5,6 +5,13 @@ const apiBaseUrl = __ENV.API_BASE_URL;
export default function () {
const res = http.post(`${apiBaseUrl}/webhook/code-node-benchmark`, {});
if (res.status !== 200) {
console.error(
`Invalid response. Received status ${res.status}. Body: ${JSON.stringify(res.body)}`,
);
}
check(res, {
'is status 200': (r) => r.status === 200,
'has items in response': (r) => {