Skip to content

Commit 002fbdc

Browse files
committed
Set default test timeout to 30s and slow to 2s
1 parent 93e95c8 commit 002fbdc

7 files changed

+3
-10
lines changed

.mocharc.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
".jsx"
77
],
88
"require": "source-map-support/register",
9-
"timeout": 10000,
9+
"timeout": 30000,
10+
"slow": 2000,
1011
"spec": "out/test/**/*.test.js"
1112
}

test/core/settings.test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import * as vscode from "vscode";
66
import { Settings, getSettings, getEffectiveConfigurationTarget, changeSetting, CommentType } from "../../src/settings";
77

88
describe("Settings E2E", function () {
9-
this.slow(800);
109
it("Loads without error", function () {
1110
assert.doesNotThrow(getSettings);
1211
});

test/features/CustomViews.test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ function convertToVSCodeResourceScheme(filePath: string): string {
3030
}
3131

3232
describe("CustomViews feature", function () {
33-
this.slow(1500);
3433
const testCases: IHtmlContentViewTestCase[] = [
3534
{
3635
name: "with no JavaScript or CSS",

test/features/DebugSession.test.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -429,10 +429,7 @@ describe("DebugSessionFeature", () => {
429429
});
430430
});
431431

432-
describe("DebugSessionFeature E2E", function slowTests() {
433-
this.slow(20 * 1000); // Will warn if test takes longer than 10s and show red if longer than 20s
434-
this.timeout(5 * 60 * 1000); // Give it five minutes, some CI is slow!
435-
432+
describe("DebugSessionFeature E2E", () => {
436433
before(async () => {
437434
// Registers and warms up the debug adapter and the PowerShell Extension Terminal
438435
await ensureEditorServicesIsConnected();

test/features/ISECompatibility.test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ describe("ISE compatibility feature", function () {
7373
});
7474

7575
describe("Color theme interactions", function () {
76-
this.slow(4000);
7776
beforeEach(enableISEMode);
7877

7978
function assertISESettings(): void {

test/features/RunCode.test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ describe("RunCode feature", function () {
4040
});
4141

4242
it("Runs Pester tests from a file", async function () {
43-
this.slow(5000);
4443
const pesterTests = path.resolve(__dirname, "../../../examples/Tests/SampleModule.Tests.ps1");
4544
assert(checkIfFileExists(pesterTests));
4645
const pesterTestDebugStarted = utils.WaitEvent<vscode.DebugSession>(vscode.debug.onDidStartDebugSession,

test/features/UpdatePowerShell.test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ describe("UpdatePowerShell feature", function () {
107107
});
108108

109109
describe("Which version it gets", function () {
110-
this.slow(2000);
111110
it("Would update to LTS", async function() {
112111
process.env.POWERSHELL_UPDATECHECK = "LTS";
113112
const version: IPowerShellVersionDetails = {

0 commit comments

Comments
 (0)