JaroslavTulach edited a comment on pull request #3237:
URL: https://github.com/apache/netbeans/pull/3237#issuecomment-941075767
I am trying this change locally
```bash
vscode$ npm run test
```
I also applied
```diff
$ git diff src/
diff --git a/java/java.lsp.server/vscode/src/test/suite/extension.test.ts
b/java/java.lsp.server/vscode/src/test/suite/extension.test.ts
index 562dacca4ef9..d11b264fcd9c 100644
--- a/java/java.lsp.server/vscode/src/test/suite/extension.test.ts
+++ b/java/java.lsp.server/vscode/src/test/suite/extension.test.ts
@@ -209,13 +209,13 @@ suite('Extension Test Suite', () => {
res = await
vscode.commands.executeCommand("java.get.project.packages",
Uri.file(folder).toString());
console.log(`Test: get all project packages finished with
${res}`);
assert.ok(res, "No packages returned");
- assert.ok(res.length > 0, `Invalid number of packages
returned`);
+ assert.strictEqual(res.length, 0, `Invalid number of packages
returned for ${folder}`);
console.log("Test: get project source packages");
res = await
vscode.commands.executeCommand("java.get.project.packages",
Uri.file(folder).toString(), true);
console.log(`Test: get project source packages finished with
${res}`);
assert.ok(res, "No packages returned");
- assert.strictEqual(res.length, 1, `Invalid number of packages
returned`);
+ assert.strictEqual(res.length, 1, `Invalid number of packages
returned for ${folder}`);
assert.strictEqual(res[0], 'pkg', `Invalid package returned`);
} catch (error) {
dumpJava();
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists