diff --git a/testdata/performance/irma-server.js b/testdata/performance/irma-server.js index 3c4b997a..8aa5f208 100644 --- a/testdata/performance/irma-server.js +++ b/testdata/performance/irma-server.js @@ -17,7 +17,7 @@ function checkResponse(response, expectedOutput = '') { 'verify status code': (r) => r.status === 200, 'verify body': (r) => r.body != null && r.body.includes(expectedOutput), }); - if (!checkOutput) fail(`unexpected response: status ${response.status}, error "${response.error}", body "${response.body}"`); + if (!checkOutput) fail(`unexpected response: url ${response.request.url}, status ${response.status}, error "${response.error}", body "${response.body}"`); } export default function () { diff --git a/testdata/performance/keyshare-server.js b/testdata/performance/keyshare-server.js index 5c84e3a3..4bba16ad 100644 --- a/testdata/performance/keyshare-server.js +++ b/testdata/performance/keyshare-server.js @@ -20,7 +20,7 @@ function checkResponse(response, expectedOutput = '') { 'verify status code': (r) => r.status === 200, 'verify body': (r) => r.body != null && r.body.includes(expectedOutput), }); - if (!checkOutput) fail(`unexpected response: status ${response.status}, error "${response.error}", body "${response.body}"`); + if (!checkOutput) fail(`unexpected response: url ${response.request.url}, status ${response.status}, error "${response.error}", body "${response.body}"`); } export function setup() { @@ -70,6 +70,7 @@ export default function ({ testAccounts }) { const testAccount = testAccounts[vu.idInTest - 1]; const pinResp = http.post(`${url}/users/verify/pin`, JSON.stringify(testAccount)); + checkResponse(pinResp); const proveParams = { headers: {