Skip to content

Commit

Permalink
8338630: Test java/nio/channels/DatagramChannel/SendReceiveMaxSize.ja…
Browse files Browse the repository at this point in the history
…va timeout
  • Loading branch information
sendaoYan committed Aug 21, 2024
1 parent 88ccbb6 commit 583aaa1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/lib/jdk/test/lib/NetworkConfiguration.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -145,6 +145,13 @@ public static boolean isTestable(NetworkInterface nif) {
return false;
}
}

if (Platform.isLinux()) {
String dName = nif.getDisplayName();
if (dName != null && dName.contains("docker")) {
return false;
}
}
return true;
}

Expand Down

0 comments on commit 583aaa1

Please sign in to comment.