Skip to content

Commit 529fe1a

Browse files
authored
Increase timeouts for @slow integration tests (#1568)
Some tests have the default timeout, which could be contributing to intermittent failures on Windows.
1 parent 57aa572 commit 529fe1a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/integration-tests/testexplorer/TestExplorerIntegration.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ suite("Test Explorer Suite", function () {
156156
});
157157

158158
test("Debugs specified XCTest test @slow", async function () {
159+
this.timeout(1000 * 60 * MAX_TEST_RUN_TIME_MINUTES * 2);
160+
159161
// CodeLLDB tests stall out on 5.9 and below.
160162
if (folderContext.swiftVersion.isLessThan(new Version(5, 10, 0))) {
161163
this.skip();
@@ -420,6 +422,8 @@ suite("Test Explorer Suite", function () {
420422
const numIterations = 5;
421423
const windowMock = mockGlobalObject(vscode, "window");
422424

425+
this.timeout(1000 * 60 * MAX_TEST_RUN_TIME_MINUTES * 5);
426+
423427
test("@slow runs an swift-testing test multiple times", async function () {
424428
const testItems = await gatherTests(
425429
testExplorer.controller,
@@ -552,6 +556,8 @@ suite("Test Explorer Suite", function () {
552556
const numIterations = 5;
553557
const windowMock = mockGlobalObject(vscode, "window");
554558

559+
this.timeout(1000 * 60 * MAX_TEST_RUN_TIME_MINUTES * 5);
560+
555561
test("@slow runs an XCTest multiple times", async function () {
556562
const testItems = await gatherTests(
557563
testExplorer.controller,

0 commit comments

Comments
 (0)