From 47e92f1bb1e5fb4c0efedbda53f6b0c041044145 Mon Sep 17 00:00:00 2001 From: Mathieu Suen Date: Thu, 21 Apr 2022 10:18:08 +0200 Subject: [PATCH] [NO-JIRA] Fix RTL timeout FPs --- server/sonar-web/config/jest/SetupReactTestingLibrary.ts | 2 +- .../js/apps/background-tasks/__tests__/BackgroundTasks-it.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/server/sonar-web/config/jest/SetupReactTestingLibrary.ts b/server/sonar-web/config/jest/SetupReactTestingLibrary.ts index 6a000da4d22..d96a84d1533 100644 --- a/server/sonar-web/config/jest/SetupReactTestingLibrary.ts +++ b/server/sonar-web/config/jest/SetupReactTestingLibrary.ts @@ -21,5 +21,5 @@ import { configure } from '@testing-library/dom'; import '@testing-library/jest-dom'; configure({ - asyncUtilTimeout: 2000 + asyncUtilTimeout: 3000 }); diff --git a/server/sonar-web/src/main/js/apps/background-tasks/__tests__/BackgroundTasks-it.tsx b/server/sonar-web/src/main/js/apps/background-tasks/__tests__/BackgroundTasks-it.tsx index e313055f445..eda0504d617 100644 --- a/server/sonar-web/src/main/js/apps/background-tasks/__tests__/BackgroundTasks-it.tsx +++ b/server/sonar-web/src/main/js/apps/background-tasks/__tests__/BackgroundTasks-it.tsx @@ -27,6 +27,7 @@ import { TaskStatuses, TaskTypes } from '../../../types/tasks'; import routes from '../routes'; jest.mock('../../../api/ce'); +jest.setTimeout(30_000); let computeEngineServiceMock: ComputeEngineServiceMock; -- 2.39.5