Skip to content

Commit e5e7d39

Browse files
committed
chore: fix flaky timeout error on activate test
1 parent 60ee08b commit e5e7d39

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/test/suite/extension.test.ts

+6-4
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ import * as assert from "assert";
22
import { extensions, commands } from "vscode";
33

44
suite("activate", () => {
5-
test("Should activate extension successfully", async () => {
5+
test("Should activate extension successfully", async function () {
6+
this.timeout(10000);
7+
68
const ext = extensions.getExtension(
7-
"gitguardian-secret-security.gitguardian"
9+
"gitguardian-secret-security.gitguardian",
810
);
911
await ext?.activate();
1012
assert.ok(ext?.isActive, "Extension should be active");
@@ -25,13 +27,13 @@ suite("activate", () => {
2527

2628
const registered = await commands.getCommands(true);
2729
const gitguardianCommands = registered.filter((command) =>
28-
command.startsWith("gitguardian")
30+
command.startsWith("gitguardian"),
2931
);
3032

3133
for (const command of commandIds) {
3234
assert.ok(
3335
gitguardianCommands.includes(command),
34-
`Command ${command} should be registered`
36+
`Command ${command} should be registered`,
3537
);
3638
}
3739
});

0 commit comments

Comments
 (0)