diff options
author | Mathieu Suen <mathieu.suen@sonarsource.com> | 2024-01-26 14:11:43 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-01-29 20:03:17 +0000 |
commit | c41648a819eaee64b4f7c924cc68d4ca6555b4a7 (patch) | |
tree | fca9702758d43539d834ec4df0f59f5fd9df1eba /server | |
parent | 29994d2a4ffa03fa205d7ed674cc29cc2efb5edb (diff) | |
download | sonarqube-c41648a819eaee64b4f7c924cc68d4ca6555b4a7.tar.gz sonarqube-c41648a819eaee64b4f7c924cc68d4ca6555b4a7.zip |
NO JIRA Improve frontend IT performance
Diffstat (limited to 'server')
-rw-r--r-- | server/sonar-web/src/main/js/apps/background-tasks/__tests__/BackgroundTasks-it.tsx | 7 |
1 files changed, 6 insertions, 1 deletions
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 ca39fcc981f..8d849cd1f4b 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 @@ -36,6 +36,11 @@ import { TaskStatuses, TaskTypes } from '../../../types/tasks'; import { PAGE_SIZE } from '../constants'; import routes from '../routes'; +jest.mock('../constants', () => ({ + ...jest.requireActual('../constants'), + PAGE_SIZE: 9, +})); + const computeEngineServiceMock = new ComputeEngineServiceMock(); beforeAll(() => { @@ -185,7 +190,7 @@ describe('The Global background task page', () => { computeEngineServiceMock.clearTasks(); - const TOTAL_TASKS = 101; + const TOTAL_TASKS = 10; computeEngineServiceMock.createTasks(TOTAL_TASKS); |