Skip to content

Commit dfaab67

Browse files
Shivangi GuptaRealCLanger
authored andcommitted
8375999: com/sun/jndi/ldap/LdapPoolTimeoutTest.java fails sporadically on Windows
Backport-of: 90b5469
1 parent 7a0f631 commit dfaab67

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/jdk/com/sun/jndi/ldap/LdapPoolTimeoutTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021, 2025, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2021, 2026, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -131,6 +131,7 @@ private static void attemptConnect(Hashtable<Object, Object> env) throws Excepti
131131
|| msg.contains("No route to host")
132132
|| msg.contains("Timed out waiting for lock")
133133
|| msg.contains("Connect timed out")
134+
|| msg.contains("Connection timed out")
134135
|| msg.contains("Timeout exceeded while waiting for a connection"))) {
135136
// got the expected exception
136137
System.out.println("Received expected NamingException with message: " + msg);

0 commit comments

Comments
 (0)