mirror of https://github.com/sbt/sbt.git
I spent a lot of time debugging why it took 5 seconds to run tests each time. It turns out that if the hostname is not set explicitly on os x, then getaddrinfo takes 5 seconds to try (and fail) to resolve the dns entry for the localhostname. This is easily fixed by setting the hostname, but it is not at all easy to figure out that a slow hostname lookup is the reason why tests are slow to start. I don't know if this is a common issue on other platforms, so only issue the warning on OS X. |
||
|---|---|---|
| .. | ||
| agent/src/main/java/sbt | ||
| src/main | ||
| NOTICE | ||