Skip to content

java/java.lsp.server test improvements #3716

@vieiro

Description

@vieiro

Apache NetBeans version

Apache NetBeans latest daily build

What happened

ConnectionSpectTest launches a dummy server on port 0, this generates 441 failed connections in a loop in my box. Test fails afterwards.

How to reproduce

Difficult to reproduce. What I tried: get a fresh clone, set JDK8 on your $PATH/$JAVA_HOME, do an "ant build" and then test the "java/java.lsp.server" module.

export OPTS="-Dmetabuild.jsonurl=https://raw.githubusercontent.com/apache/netbeans-jenkins-lib/master/meta/netbeansrelease.json -quiet -Dcluster.config=java -Djavac.compilerargs=-nowarn -Dbuild.compiler.deprecation=false -Dtest-unit-sys-prop.ignore.random.failures=true"
echo "OPTS"
ant $OPTS build
ant $OPTS -f java/java.lsp.server test | tee java.lsp.server.test.-log.txt

Will try to attach a file if github/issues allows it.

Did this work correctly in an earlier version?

No

Operating System

Linux fenix 5.10.0-11-amd64 #1 SMP Debian 5.10.92-1 (2022-01-18) x86_64 GNU/Linux

JDK

OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_232-b09)

Apache NetBeans packaging

Own source build

Anything else

No response

Are you willing to submit a pull request?

Yes

Code of Conduct

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    CIcontinuous integration changeskind:bugBug report or fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions