Java + wiremock: SocketTimeOut

Hi,

I am using wiremock to test a restful API.
For some reason, the build fails connecting to wiremock on localhost:8080 (or any other port) with this error message:

Caused by: java.net.SocketTimeoutException: SocketTimeoutException invoking http://localhost:40705/index.cgi

Example build:
https://travis-ci.org/github/bmhm/j9kwsolver/builds/703051983

I tried to configure wiremock to localhost explicitly, I added a dynamic port option. But no luck.
Ideas what went wrong are very welcome. Haven’t seen this before with similar setups.

Have you tried to set the timeout for longer?

Ah, good point. I remember now that I reduced the defaults to 100ms connection timeout and 500ms read timeout. Interstingly, this is still far more than I need for both local tests and integration tests, but may not work well with the travis environment for some reason.

The build finished while writing this answer. Works fine now. Thanks! :slight_smile:

https://travis-ci.org/github/bmhm/j9kwsolver/jobs/703093254