aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorMathieu Suen <mathieu.suen@sonarsource.com>2024-01-26 14:11:43 +0100
committersonartech <sonartech@sonarsource.com>2024-01-29 20:03:17 +0000
commitc41648a819eaee64b4f7c924cc68d4ca6555b4a7 (patch)
treefca9702758d43539d834ec4df0f59f5fd9df1eba /server
parent29994d2a4ffa03fa205d7ed674cc29cc2efb5edb (diff)
downloadsonarqube-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.tsx7
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);