(res, expected, label)
| 55 | const PASSWORD = "LoadTest!1Strong"; |
| 56 | |
| 57 | const expectStatus = (res, expected, label) => { |
| 58 | const ok = res.status === expected; |
| 59 | if (!ok) { |
| 60 | errorsCounter.add(1, { step: label, status: String(res.status) }); |
| 61 | } |
| 62 | return ok; |
| 63 | }; |
| 64 | |
| 65 | export default function () { |
| 66 | if (!E2E_TOKEN_REQUIRED) { |