Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ZOOKEEPER-2664: ClientPortBindTest#testBindByAddress may fail due to …
…"No such device" exception The following stack trace was observed intermittently: ``` Stacktrace java.net.SocketException: No such device at java.net.NetworkInterface.isLoopback0(Native Method) at java.net.NetworkInterface.isLoopback(NetworkInterface.java:390) at org.apache.zookeeper.test.ClientPortBindTest.testBindByAddress(ClientPortBindTest.java:61) at org.apache.zookeeper.JUnit4ZKTestRunner$LoggedInvokeMethod.evaluate(JUnit4ZKTestRunner.java:52) Standard Output ``` Proposed fix is to catch exception from isLoopback() call and skip the test in that case. Author: tedyu <yuzhihong@gmail.com> Reviewers: Edward Ribeiro <edward.ribeiro@gmail.com>, Michael Han <hanm@apache.org> Closes apache#149 from tedyu/master
- Loading branch information