# HG changeset patch # User xiaofeya # Date 1461137702 25200 # Node ID e672a494cce9f03e937fbe3112410f4989c5ef61 # Parent 032087786008c0aa3330ed3133077d84ae27aa5e 8154543: NetworkInterfaceStreamTest.java fails intermittently after JDK-8146758 Reviewed-by: chegar Contributed-by: Felix Yang diff -r 032087786008 -r e672a494cce9 jdk/test/java/net/NetworkInterface/NetworkInterfaceStreamTest.java --- a/jdk/test/java/net/NetworkInterface/NetworkInterfaceStreamTest.java Tue Apr 19 18:09:58 2016 -0700 +++ b/jdk/test/java/net/NetworkInterface/NetworkInterfaceStreamTest.java Wed Apr 20 00:35:02 2016 -0700 @@ -51,7 +51,8 @@ public void testNetworkInterfaces() throws SocketException { Supplier> ss = () -> { try { - return allNetworkInterfaces(); + return NetworkInterface.networkInterfaces() + .filter(ni -> isIncluded(ni)); } catch (SocketException e) { throw new RuntimeException(e);