diff --git a/e2e/spring-shell-e2e-tests/src/utils.ts b/e2e/spring-shell-e2e-tests/src/utils.ts index d1d2605f..c80cf710 100644 --- a/e2e/spring-shell-e2e-tests/src/utils.ts +++ b/e2e/spring-shell-e2e-tests/src/utils.ts @@ -16,3 +16,5 @@ export const jarDesc = 'jar'; export const jarCommand = 'java'; export const nativeCommand = cliPath; export const jarOptions = ['-jar', jarPath]; +export const waitForExpectDefaultTimeout = 10000; +export const waitForExpectDefaultInterval = 100; diff --git a/e2e/spring-shell-e2e-tests/test/builtin.test.ts b/e2e/spring-shell-e2e-tests/test/builtin.test.ts index c4a6c1d4..33aa4780 100644 --- a/e2e/spring-shell-e2e-tests/test/builtin.test.ts +++ b/e2e/spring-shell-e2e-tests/test/builtin.test.ts @@ -1,7 +1,15 @@ import 'jest-extended'; import waitForExpect from 'wait-for-expect'; import { Cli } from 'spring-shell-e2e'; -import { nativeDesc, jarDesc, jarCommand, nativeCommand, jarOptions } from '../src/utils'; +import { + nativeDesc, + jarDesc, + jarCommand, + nativeCommand, + jarOptions, + waitForExpectDefaultTimeout, + waitForExpectDefaultInterval +} from '../src/utils'; // all buildin commands describe('builtin commands', () => { @@ -24,8 +32,8 @@ describe('builtin commands', () => { }; beforeEach(async () => { - waitForExpect.defaults.timeout = 3000; - waitForExpect.defaults.interval = 100; + waitForExpect.defaults.timeout = waitForExpectDefaultTimeout; + waitForExpect.defaults.interval = waitForExpectDefaultInterval; }, 300000); afterEach(async () => { diff --git a/e2e/spring-shell-e2e-tests/test/flow.test.ts b/e2e/spring-shell-e2e-tests/test/flow.test.ts index 9a27d21d..bf756173 100644 --- a/e2e/spring-shell-e2e-tests/test/flow.test.ts +++ b/e2e/spring-shell-e2e-tests/test/flow.test.ts @@ -1,7 +1,15 @@ import 'jest-extended'; import waitForExpect from 'wait-for-expect'; import { Cli } from 'spring-shell-e2e'; -import { nativeDesc, jarDesc, jarCommand, nativeCommand, jarOptions } from '../src/utils'; +import { + nativeDesc, + jarDesc, + jarCommand, + nativeCommand, + jarOptions, + waitForExpectDefaultTimeout, + waitForExpectDefaultInterval +} from '../src/utils'; // all flow commands describe('flow commands', () => { @@ -46,8 +54,8 @@ describe('flow commands', () => { }; beforeEach(async () => { - waitForExpect.defaults.timeout = 3000; - waitForExpect.defaults.interval = 100; + waitForExpect.defaults.timeout = waitForExpectDefaultTimeout; + waitForExpect.defaults.interval = waitForExpectDefaultInterval; }, 300000); afterEach(async () => {