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
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.