Skip to content

Commit

Permalink
Wait more time
Browse files Browse the repository at this point in the history
  • Loading branch information
jdneo committed Oct 31, 2024
1 parent fe0e194 commit 0cb8e49
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
6 changes: 5 additions & 1 deletion test/gradle-suite/projectView.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@

import * as assert from "assert";
import { ContainerNode, contextManager, DataNode, DependencyExplorer,
languageServerApiManager,
PackageRootNode, PrimaryTypeNode, ProjectNode } from "../../extension.bundle";
import { fsPath, setupTestEnv, Uris } from "../shared";

// tslint:disable: only-arrow-functions
suite("Gradle Project View Tests", () => {

suiteSetup(setupTestEnv);
suiteSetup(async () => {
await setupTestEnv();
await languageServerApiManager.ready();
});

test("Can node render correctly", async function() {
const explorer = DependencyExplorer.getInstance(contextManager.context);
Expand Down
14 changes: 5 additions & 9 deletions test/invisible-suite/projectView.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,21 @@

import * as assert from "assert";
import * as fse from "fs-extra";
import { platform } from "os";
import * as path from "path";
import * as vscode from "vscode";
import { Commands, contextManager, DependencyExplorer, PackageNode, PackageRootNode, ProjectNode } from "../../extension.bundle";
import { Commands, contextManager, DependencyExplorer, languageServerApiManager, PackageNode, PackageRootNode, ProjectNode } from "../../extension.bundle";
import { setupTestEnv } from "../shared";
import { sleep } from "../util";

// tslint:disable: only-arrow-functions
suite("Invisible Project View Tests", () => {

suiteSetup(setupTestEnv);
suiteSetup(async () => {
await setupTestEnv();
await languageServerApiManager.ready();
});

test("Can execute command java.project.refreshLibraries correctly", async function() {
if (platform() === "darwin") {
this.skip();
}
const explorer = DependencyExplorer.getInstance(contextManager.context);

let projectNode = (await explorer.dataProvider.getChildren())![0] as ProjectNode;
Expand All @@ -37,9 +36,6 @@ suite("Invisible Project View Tests", () => {
});

test("Can execute command java.project.removeLibrary correctly", async function() {
if (platform() === "darwin") {
this.skip();
}
const explorer = DependencyExplorer.getInstance(contextManager.context);

let projectNode = (await explorer.dataProvider.getChildren())![0] as ProjectNode;
Expand Down
7 changes: 5 additions & 2 deletions test/maven-suite/projectView.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@
import * as assert from "assert";
import * as vscode from "vscode";
import { Commands, ContainerNode, contextManager, DataNode, DependencyExplorer, FileNode,
INodeData, Jdtls, NodeKind, PackageNode, PackageRootNode, PrimaryTypeNode, ProjectNode } from "../../extension.bundle";
INodeData, Jdtls, languageServerApiManager, NodeKind, PackageNode, PackageRootNode, PrimaryTypeNode, ProjectNode } from "../../extension.bundle";
import { fsPath, printNodes, setupTestEnv, Uris } from "../shared";

// tslint:disable: only-arrow-functions
suite("Maven Project View Tests", () => {

suiteSetup(setupTestEnv);
suiteSetup(async () => {
await setupTestEnv();
await languageServerApiManager.ready();
});

test("Can node render correctly in hierarchical view", async function() {
await vscode.workspace.getConfiguration("java.dependency").update("packagePresentation", "hierarchical");
Expand Down

0 comments on commit 0cb8e49

Please sign in to comment.