()
| 5077 | expect(otp).toBeDefined(); |
| 5078 | |
| 5079 | const loginWithOtp = () => |
| 5080 | request({ |
| 5081 | method: 'POST', |
| 5082 | url: 'http://localhost:8378/1/login', |
| 5083 | headers: mfaHeaders, |
| 5084 | body: JSON.stringify({ |
| 5085 | username: 'smsmfauser', |
| 5086 | password: 'password123', |
| 5087 | authData: { mfa: { token: otp } }, |
| 5088 | }), |
| 5089 | }); |
| 5090 | |
| 5091 | const results = await Promise.allSettled(Array(10).fill().map(() => loginWithOtp())); |
| 5092 |
no test coverage detected