diff options
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); |