Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[junit-runner] cache localhost lookups to ease OSX/JDK DNS issues #5660
OSX's DNS service's handling of localhost names changed, I think with 10.12, in a way that combined with JDK releases after a particular point release of 1.8 causes looking up localhost's name to take on the order of seconds for some folks. https://bugs.openjdk.java.net/browse/JDK-8170910
This patch memoizes the localhost lookup used by the xml listener of Pants' junit runner so that it won't be re-looked up per test suite entry.
As a workaround for the problem, OSX users can add an additional name in their