I would avoid environment dependent code in unit tests, it can interfere with 
another process or test. It's better to mock `canBind`, ie if you want to check 
the class doesn't provide occupied *1024* port, make the method stub of 
`canBind(1024)` return `false`.

[ Full content available at: 
https://github.com/apache/incubator-druid/pull/6263 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to