Skip to content

Commit d3c5abc

Browse files
committed
Move timeout statements that cause issues in VS Code UI
1 parent a4fe79f commit d3c5abc

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

integration/vscode/ada/test/aggregate_projects/aggregate_projects.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ import { createAdaTaskProvider } from '../../src/taskProviders';
66
import { activate, getCommandLines, isCoreTask } from '../utils';
77

88
suite('Aggregate Projects Support', function () {
9-
// Set timeout to 15 seconds unless already configured to more
10-
this.timeout(Math.max(this.timeout(), 15000));
11-
129
let projectPath: string;
1310

1411
this.beforeAll(async () => {
@@ -22,6 +19,9 @@ suite('Aggregate Projects Support', function () {
2219
* build and run the mains of all aggregated projects.
2320
*/
2421
test('Ada tasks for aggregate projects', async () => {
22+
// Set timeout to 15 seconds unless already configured to more
23+
this.timeout(Math.max(this.timeout(), 15000));
24+
2525
const expectedCmdLines = `
2626
ada: Clean current project - gprclean -P ${projectPath}
2727
ada: Build current project - gprbuild -P ${projectPath} '-cargs:ada' -gnatef

integration/vscode/ada/test/general/tasks.test.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,18 @@ import {
2727
import { runTaskAndGetResult } from '../../src/taskProviders';
2828

2929
suite('Task Providers', function () {
30-
// Set timeout to 15 seconds unless already configured to more
31-
this.timeout(Math.max(this.timeout(), 15000));
32-
3330
let projectPath: string;
3431

3532
this.beforeAll(async () => {
3633
await activate();
3734
projectPath = await getProjectFile();
3835
});
3936

37+
this.beforeEach(function () {
38+
// Set timeout to 15 seconds unless already configured to more
39+
this.timeout(Math.max(this.timeout(), 15000));
40+
});
41+
4042
/**
4143
* Check that the list of offered Ada tasks is expected.
4244
*/

0 commit comments

Comments
 (0)