Skip to content
This repository has been archived by the owner on Jan 13, 2021. It is now read-only.

Commit

Permalink
fix(ci): increase timeout in adapter tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Morten Henriksen committed Sep 16, 2019
1 parent 1687ec7 commit d0df6b2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -52,7 +52,7 @@ stages:

script:
- yarn tslint
- yarn test-ci
- yarn test
jobs:
include:
- stage: release
Expand Down
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -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",
Expand Down
11 changes: 6 additions & 5 deletions src/tests/adapter.test.ts
Expand Up @@ -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';

Expand Down Expand Up @@ -130,7 +131,7 @@ describe('Perl debug Adapter', () => {
console: 'none'
})),
]);
}, 10000);
}, timeout);

it('should stop on entry', async () => {

Expand All @@ -150,7 +151,7 @@ describe('Perl debug Adapter', () => {
}));

await dc.assertStoppedLocation('entry', { line: ENTRY_LINE } );
});
}, timeout);
});

describe('pause', () => {
Expand Down Expand Up @@ -197,7 +198,7 @@ describe('Perl debug Adapter', () => {
'must have gone at least twice through the loop'
);

}, 10000);
}, timeout);
});

describe('setFunctionBreakpoints', () => {
Expand Down Expand Up @@ -263,7 +264,7 @@ describe('Perl debug Adapter', () => {
hitFunctionBreakpoint
]);

});
}, timeout);
});

// xxx: Need to figure out this test
Expand Down

0 comments on commit d0df6b2

Please sign in to comment.