Skip to content

Commit 0a8e846

Browse files
committed
Fixup task test
1 parent 71434e9 commit 0a8e846

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test/integration-tests/ui/ProjectPanelProvider.test.ts

+6-3
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ suite("ProjectPanelProvider Test Suite", function () {
3939
await vscode.workspace.openTextDocument(
4040
path.join(folderContext.folder.fsPath, "Package.swift")
4141
);
42-
await executeTaskAndWaitForResult((await getBuildAllTask(folderContext)) as SwiftTask);
42+
const buildAllTask = await getBuildAllTask(folderContext);
43+
buildAllTask.definition.dontTriggerTestDiscovery = true;
44+
await executeTaskAndWaitForResult(buildAllTask as SwiftTask);
4345
await folderContext.loadSwiftPlugins();
4446
treeProvider = new ProjectPanelProvider(workspaceContext);
4547
await workspaceContext.focusFolder(folderContext);
@@ -56,8 +58,6 @@ suite("ProjectPanelProvider Test Suite", function () {
5658
resetSettings = await updateSettings({
5759
"swift.debugger.debugAdapter": "CodeLLDB",
5860
});
59-
60-
await waitForNoRunningTasks();
6161
});
6262

6363
afterEach(async () => {
@@ -96,6 +96,9 @@ suite("ProjectPanelProvider Test Suite", function () {
9696
});
9797

9898
suite("Tasks", () => {
99+
beforeEach(async () => {
100+
await waitForNoRunningTasks();
101+
});
99102
test("Includes tasks", async () => {
100103
const tasks = await getHeaderChildren("Tasks");
101104
const dep = tasks.find(n => n.name === "Build All (targets)") as PackageNode;

0 commit comments

Comments
 (0)