From 89a36a9cc0860855e34325bd33a0ee5f30876dfe Mon Sep 17 00:00:00 2001 From: Anatolii Bazko Date: Mon, 26 Dec 2022 11:02:25 +0200 Subject: [PATCH] Update startTimeout in tests Signed-off-by: Anatolii Bazko --- .../store/Plugins/devWorkspacePlugins/__tests__/index.spec.ts | 2 +- .../src/store/ServerConfig/__tests__/index.spec.ts | 2 +- packages/dashboard-frontend/src/store/ServerConfig/index.ts | 2 +- packages/dashboard-frontend/src/store/ServerConfig/selectors.ts | 2 +- packages/dashboard-frontend/src/store/__mocks__/storeBuilder.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/dashboard-frontend/src/store/Plugins/devWorkspacePlugins/__tests__/index.spec.ts b/packages/dashboard-frontend/src/store/Plugins/devWorkspacePlugins/__tests__/index.spec.ts index 0a127d07c..19682631c 100644 --- a/packages/dashboard-frontend/src/store/Plugins/devWorkspacePlugins/__tests__/index.spec.ts +++ b/packages/dashboard-frontend/src/store/Plugins/devWorkspacePlugins/__tests__/index.spec.ts @@ -334,7 +334,7 @@ describe('dwPlugins store', () => { timeouts: { inactivityTimeout: -1, runTimeout: -1, - startTimeout: -1, + startTimeout: 300, }, cheNamespace: 'eclipse-che', }) diff --git a/packages/dashboard-frontend/src/store/ServerConfig/__tests__/index.spec.ts b/packages/dashboard-frontend/src/store/ServerConfig/__tests__/index.spec.ts index 556c58eec..230950f77 100644 --- a/packages/dashboard-frontend/src/store/ServerConfig/__tests__/index.spec.ts +++ b/packages/dashboard-frontend/src/store/ServerConfig/__tests__/index.spec.ts @@ -59,7 +59,7 @@ describe('dwPlugins store', () => { timeouts: { inactivityTimeout: -1, runTimeout: -1, - startTimeout: -1, + startTimeout: 300, }, cheNamespace: 'eclipse-che', }; diff --git a/packages/dashboard-frontend/src/store/ServerConfig/index.ts b/packages/dashboard-frontend/src/store/ServerConfig/index.ts index 7db474c50..8281f2c4d 100644 --- a/packages/dashboard-frontend/src/store/ServerConfig/index.ts +++ b/packages/dashboard-frontend/src/store/ServerConfig/index.ts @@ -86,7 +86,7 @@ const unloadedState: State = { timeouts: { inactivityTimeout: -1, runTimeout: -1, - startTimeout: -1, + startTimeout: 300, }, cheNamespace: '', }, diff --git a/packages/dashboard-frontend/src/store/ServerConfig/selectors.ts b/packages/dashboard-frontend/src/store/ServerConfig/selectors.ts index fcb2a8796..e22b3e34a 100644 --- a/packages/dashboard-frontend/src/store/ServerConfig/selectors.ts +++ b/packages/dashboard-frontend/src/store/ServerConfig/selectors.ts @@ -38,7 +38,7 @@ export const selectPvcStrategy = createSelector( export const selectStartTimeout = createSelector( selectState, - state => state.config.timeouts.startTimeout || 0, + state => state.config.timeouts.startTimeout, ); export const selectServerConfigError = createSelector(selectState, state => state.error); diff --git a/packages/dashboard-frontend/src/store/__mocks__/storeBuilder.ts b/packages/dashboard-frontend/src/store/__mocks__/storeBuilder.ts index de9afc04e..fe9cc62f1 100644 --- a/packages/dashboard-frontend/src/store/__mocks__/storeBuilder.ts +++ b/packages/dashboard-frontend/src/store/__mocks__/storeBuilder.ts @@ -54,7 +54,7 @@ export class FakeStoreBuilder { timeouts: { inactivityTimeout: -1, runTimeout: -1, - startTimeout: -1, + startTimeout: 300, }, cheNamespace: '', } as api.IServerConfig,