We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c7e99a commit de655dcCopy full SHA for de655dc
test_ldap/ldap.spec.ts
@@ -14,6 +14,21 @@ const wrongLoginData: UserLoginRequestDto = {
14
};
15
16
describe('Ldap', () => {
17
+ beforeAll(async () => {
18
+ const retries = 5;
19
+ for (let attempt = 1; attempt <= retries; attempt++) {
20
+ try {
21
+ await axios.get('/health');
22
+ } catch (error) {
23
+ if (attempt < retries) {
24
+ await new Promise((resolve) => setTimeout(resolve, 1_000));
25
+ } else {
26
+ throw error;
27
+ }
28
29
30
+ });
31
+
32
test('Sucessful login', async () => {
33
const response = await axios.post<UserLoginResponseDto>('/users/login', loginData);
34
0 commit comments