Skip to content

Commit

Permalink
Fixup task test
Browse files Browse the repository at this point in the history
  • Loading branch information
plemarquand committed Feb 20, 2025
1 parent 71434e9 commit 0a8e846
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/integration-tests/ui/ProjectPanelProvider.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ suite("ProjectPanelProvider Test Suite", function () {
await vscode.workspace.openTextDocument(
path.join(folderContext.folder.fsPath, "Package.swift")
);
await executeTaskAndWaitForResult((await getBuildAllTask(folderContext)) as SwiftTask);
const buildAllTask = await getBuildAllTask(folderContext);
buildAllTask.definition.dontTriggerTestDiscovery = true;
await executeTaskAndWaitForResult(buildAllTask as SwiftTask);
await folderContext.loadSwiftPlugins();
treeProvider = new ProjectPanelProvider(workspaceContext);
await workspaceContext.focusFolder(folderContext);
Expand All @@ -56,8 +58,6 @@ suite("ProjectPanelProvider Test Suite", function () {
resetSettings = await updateSettings({
"swift.debugger.debugAdapter": "CodeLLDB",
});

await waitForNoRunningTasks();
});

afterEach(async () => {
Expand Down Expand Up @@ -96,6 +96,9 @@ suite("ProjectPanelProvider Test Suite", function () {
});

suite("Tasks", () => {
beforeEach(async () => {
await waitForNoRunningTasks();
});
test("Includes tasks", async () => {
const tasks = await getHeaderChildren("Tasks");
const dep = tasks.find(n => n.name === "Build All (targets)") as PackageNode;
Expand Down

0 comments on commit 0a8e846

Please sign in to comment.