Skip to content

Commit

Permalink
Improve Load Testing Error Reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderkiel committed Oct 24, 2024
1 parent 4518987 commit ea21172
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/load-test/patient-everything.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default function({ patientIds }) {
function readPatientIds(url) {
const res = http.get(url, searchTypeParams);

if (res.status !== 200) fail('non 200 response code while reading all patients');
if (res.status !== 200) fail(`non 200 response code ${res.status} while reading all patients`);

const body = res.json();

Expand Down
2 changes: 1 addition & 1 deletion modules/load-test/read-single-patient.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default function({ patientIds }) {
function readPatientIds(url) {
const res = http.get(url, searchTypeParams);

if (res.status !== 200) fail('non 200 response code while reading all patients');
if (res.status !== 200) fail(`non 200 response code ${res.status} while reading all patients`);

const body = res.json();

Expand Down

0 comments on commit ea21172

Please sign in to comment.