From: Vladimir Petko Date: Fri, 27 Mar 2026 11:33:53 +0000 (+0100) Subject: Replace hostname with a non-existant ip address X-Git-Tag: archive/raspbian/21.0.11_8ea-1+rpi1^2~15 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6950d334dd92510b0dbdaaba702893532f71cf19;p=openjdk-21.git Replace hostname with a non-existant ip address Forwarded: no Last-Update: 2023-03-27 In Ubuntu build environment we do not have DNS resolver, causing an unexpected test failure. Use a non-existant IP address instead of hostname. Gbp-Pq: Name ldap-timeout-test-use-ip.patch --- diff --git a/test/jdk/com/sun/jndi/ldap/LdapPoolTimeoutTest.java b/test/jdk/com/sun/jndi/ldap/LdapPoolTimeoutTest.java index 5efd4b45e..e27272cfc 100644 --- a/test/jdk/com/sun/jndi/ldap/LdapPoolTimeoutTest.java +++ b/test/jdk/com/sun/jndi/ldap/LdapPoolTimeoutTest.java @@ -81,7 +81,9 @@ public class LdapPoolTimeoutTest { env.put("com.sun.jndi.ldap.read.timeout", String.valueOf(READ_MILLIS)); env.put("com.sun.jndi.ldap.connect.timeout", String.valueOf(CONNECT_MILLIS)); env.put("com.sun.jndi.ldap.connect.pool", "true"); - env.put(Context.PROVIDER_URL, "ldap://example.com:1234"); + // there should not be a LDAP provider on multicast address, but + // network stack should be able to send to it + env.put(Context.PROVIDER_URL, "ldap://224.0.0.0:1234"); try { // launch a few concurrent connection attempts