jfrog / xray-client-java

Xray Java Client
Apache License 2.0
10 stars 16 forks source link

Fix integration tests on Windows #17

Closed yahavi closed 3 years ago

yahavi commented 3 years ago

Fix the following error in test:

Gradle suite > Gradle test > com.jfrog.xray.client.impl.test.SummaryTests > beforeMethod FAILED org.mockserver.client.SocketConnectionException: Unable to connect to socket /127.0.0.1:8888 Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no further information: /127.0.0.1:8888 Caused by: java.net.ConnectException: Connection refused: no further information

The root cause is an attempt to call mockServer.reset() before the mock server of the previous test had been stopped.

github-actions[bot] commented 3 years ago

CLA Assistant Lite bot All contributors have signed the CLA ✍️