Skip to content

Commit 871f79e

Browse files
wenytang-msCopilot
andcommitted
test: fix flaky simple project name assertion
The .project file defined name '1.helloworld' but JDT LS may override it with the folder name 'simple'. Align .project name with folder name to eliminate the inconsistency. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 59202a7 commit 871f79e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

test/simple-suite/projectView.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ suite("Simple Project View Tests", () => {
1818
const roots = await explorer.dataProvider.getChildren();
1919
assert.equal(roots?.length, 1, "Number of root node should be 1");
2020
const projectNode = roots![0] as ProjectNode;
21-
assert.equal(projectNode.name, "1.helloworld", "Project name should be \"1.helloworld\"");
21+
assert.equal(projectNode.name, "simple", "Project name should be \"simple\"");
2222

2323
// validate package root/dependency nodes
2424
const projectChildren = await projectNode.getChildren();

test/simple/.project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<projectDescription>
3-
<name>1.helloworld</name>
3+
<name>simple</name>
44
<comment></comment>
55
<projects>
66
</projects>

0 commit comments

Comments
 (0)