testkit: more resilient check for available loopback addresses in SocketUtil on MacOS (#29607)

Fixes #29604
This commit is contained in:
Johannes Rudolph 2020-09-15 11:22:27 +02:00 committed by GitHub
parent 36d924b151
commit 8732b69446
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,8 +24,7 @@ object SocketUtil {
SocketUtil.temporaryServerAddress(address = "127.20.0.0")
true
} catch {
case _: java.net.BindException =>
false
case NonFatal(_) => false
}
}