| 3498 | |
| 3499 | // Send two concurrent password reset requests with different passwords |
| 3500 | const resetRequest = password => |
| 3501 | request({ |
| 3502 | method: 'POST', |
| 3503 | url: 'http://localhost:8378/1/apps/test/request_password_reset', |
| 3504 | body: `new_password=${encodeURIComponent(password)}&token=${encodeURIComponent(token)}`, |
| 3505 | headers: { |
| 3506 | 'Content-Type': 'application/x-www-form-urlencoded', |
| 3507 | 'X-Requested-With': 'XMLHttpRequest', |
| 3508 | }, |
| 3509 | followRedirects: false, |
| 3510 | }); |
| 3511 | |
| 3512 | const [resultA, resultB] = await Promise.allSettled([ |
| 3513 | resetRequest('PasswordA1!'), |
no test coverage detected