From fcac41c7868dbff0e2ceb5ea8ef251178225dfa1 Mon Sep 17 00:00:00 2001 From: Lei Zhu Date: Wed, 20 Sep 2023 21:27:22 +0800 Subject: [PATCH] Increse time limitation make test on Windows more stable --- test/suite/extension.test.ts | 4 ++-- test/suite/index.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/suite/extension.test.ts b/test/suite/extension.test.ts index 16308bdf..65b33c6b 100644 --- a/test/suite/extension.test.ts +++ b/test/suite/extension.test.ts @@ -45,7 +45,7 @@ suite('Extension Test Suite', () => { test('3. Extension should create the extension log file', async () => { // Open the document to trigger the extension vscode.workspace.openTextDocument(getWorkspaceFile('Main.hs')); - assert.ok(await runWithIntervalAndTimeout(() => workspaceFileExist(LOG), 1, 30)); + assert.ok(await runWithIntervalAndTimeout(() => workspaceFileExist(LOG), 1, 60)); }); test('4. Extension log should have server output', async () => { @@ -57,7 +57,7 @@ suite('Extension Test Suite', () => { } return false; }; - assert.ok(await runWithIntervalAndTimeout(checkServerLog, 5, 60), + assert.ok(await runWithIntervalAndTimeout(checkServerLog, 5, 120), 'Extension log file has no expected hls output'); }); diff --git a/test/suite/index.ts b/test/suite/index.ts index f3dcf2c5..6b525378 100644 --- a/test/suite/index.ts +++ b/test/suite/index.ts @@ -6,7 +6,7 @@ export async function run(): Promise { // Create the mocha test const mocha = new Mocha({ ui: 'tdd', - timeout: 180_000, // 3 mins + timeout: 210_000, // 3.5 mins color: true, });