diff --git a/.travis.yml b/.travis.yml index 6aa4879..eac38ee 100644 --- a/.travis.yml +++ b/.travis.yml @@ -52,7 +52,7 @@ stages: script: - yarn tslint - - yarn test-ci + - yarn test jobs: include: - stage: release diff --git a/package.json b/package.json index 2e55afe..ebe4a79 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,6 @@ "compile": "tsc", "tslint": "tslint ./src/**/*.ts", "watch": "tsc -w", - "test-ci": "CI=true jest --runInBand", "test": "jest", "test:w": "jest --watch", "postinstall": "node ./node_modules/vscode/bin/install", diff --git a/src/tests/adapter.test.ts b/src/tests/adapter.test.ts index 5cec8c7..7b212ed 100644 --- a/src/tests/adapter.test.ts +++ b/src/tests/adapter.test.ts @@ -12,7 +12,8 @@ import { Subject } from 'await-notify'; import { platform } from 'os'; describe('Perl debug Adapter', () => { - jest.setTimeout(10000); + const timeout = 10000; + jest.setTimeout(timeout); const DEBUG_ADAPTER = './out/debugAdapter.js'; @@ -130,7 +131,7 @@ describe('Perl debug Adapter', () => { console: 'none' })), ]); - }, 10000); + }, timeout); it('should stop on entry', async () => { @@ -150,7 +151,7 @@ describe('Perl debug Adapter', () => { })); await dc.assertStoppedLocation('entry', { line: ENTRY_LINE } ); - }); + }, timeout); }); describe('pause', () => { @@ -197,7 +198,7 @@ describe('Perl debug Adapter', () => { 'must have gone at least twice through the loop' ); - }, 10000); + }, timeout); }); describe('setFunctionBreakpoints', () => { @@ -263,7 +264,7 @@ describe('Perl debug Adapter', () => { hitFunctionBreakpoint ]); - }); + }, timeout); }); // xxx: Need to figure out this test