From c3f49bfbccb871ba03987dfda75e8cf3ac0daad3 Mon Sep 17 00:00:00 2001 From: Paul LeMarquand Date: Wed, 21 May 2025 09:08:18 -0400 Subject: [PATCH] Increase timeouts for @slow integration tests Some tests have the default timeout, which could be contributing to intermittent failures on Windows. --- .../testexplorer/TestExplorerIntegration.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/integration-tests/testexplorer/TestExplorerIntegration.test.ts b/test/integration-tests/testexplorer/TestExplorerIntegration.test.ts index 3c34eed79..7823c46e7 100644 --- a/test/integration-tests/testexplorer/TestExplorerIntegration.test.ts +++ b/test/integration-tests/testexplorer/TestExplorerIntegration.test.ts @@ -156,6 +156,8 @@ suite("Test Explorer Suite", function () { }); test("Debugs specified XCTest test @slow", async function () { + this.timeout(1000 * 60 * MAX_TEST_RUN_TIME_MINUTES * 2); + // CodeLLDB tests stall out on 5.9 and below. if (folderContext.swiftVersion.isLessThan(new Version(5, 10, 0))) { this.skip(); @@ -420,6 +422,8 @@ suite("Test Explorer Suite", function () { const numIterations = 5; const windowMock = mockGlobalObject(vscode, "window"); + this.timeout(1000 * 60 * MAX_TEST_RUN_TIME_MINUTES * 5); + test("@slow runs an swift-testing test multiple times", async function () { const testItems = await gatherTests( testExplorer.controller, @@ -552,6 +556,8 @@ suite("Test Explorer Suite", function () { const numIterations = 5; const windowMock = mockGlobalObject(vscode, "window"); + this.timeout(1000 * 60 * MAX_TEST_RUN_TIME_MINUTES * 5); + test("@slow runs an XCTest multiple times", async function () { const testItems = await gatherTests( testExplorer.controller,