testkit: more resilient check for available loopback addresses in SocketUtil on MacOS (#29607)
Fixes #29604
This commit is contained in:
parent
36d924b151
commit
8732b69446
1 changed files with 1 additions and 2 deletions
|
|
@ -24,8 +24,7 @@ object SocketUtil {
|
||||||
SocketUtil.temporaryServerAddress(address = "127.20.0.0")
|
SocketUtil.temporaryServerAddress(address = "127.20.0.0")
|
||||||
true
|
true
|
||||||
} catch {
|
} catch {
|
||||||
case _: java.net.BindException =>
|
case NonFatal(_) => false
|
||||||
false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue