Open zoffixznet opened 6 years ago
This breaks CI for other modules using HTTP::UserAgent: https://travis-ci.org/bbkr/jsonrpc/jobs/351673499 .
Assuming I'm reading the code correctly, NETWORK_TESTING is a red herring. This problem has nothing to do with that.
I am running into this here: https://travis-ci.org/zostay/Amazon-DynamoDB/jobs/412756488
Looking at how the server is startup, my guess is that there's either a problem with how the test selects an available port or the timing. I suspect a timing issue. Since the server is running in a separate thread, it does not appear to be the case that the code guarantees that the server is running before it tries to contact it.
Looking through the build history of HTTP::UserAgent, the error occurs there too. For example,
https://travis-ci.org/sergot/http-useragent/builds/341064491
Spotted this in a travis run: