Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

Commit

Permalink
HADOOP-17340. TestLdapGroupsMapping failing -string mismatch in excep…
Browse files Browse the repository at this point in the history
…tion validation. (apache#2427). Contributed by Steve Loughran.
  • Loading branch information
steveloughran authored and Hexiaoqiao committed Nov 28, 2020
1 parent 91424ca commit 968158e
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,9 @@ public void run() {
fail("The LDAP query should have timed out!");
} catch (NamingException ne) {
LOG.debug("Got the exception while LDAP querying: ", ne);
assertExceptionContains("LDAP response read timed out, timeout used:" +
connectionTimeoutMs + "ms", ne);
assertExceptionContains("LDAP response read timed out, timeout used",
ne);
assertExceptionContains("" + connectionTimeoutMs, ne);
assertFalse(ne.getMessage().contains("remaining name"));
} finally {
finLatch.countDown();
Expand Down Expand Up @@ -404,8 +405,9 @@ public void run() {
fail("The LDAP query should have timed out!");
} catch (NamingException ne) {
LOG.debug("Got the exception while LDAP querying: ", ne);
assertExceptionContains("LDAP response read timed out, timeout used:" +
readTimeoutMs + "ms", ne);
assertExceptionContains("LDAP response read timed out, timeout used",
ne);
assertExceptionContains(""+ readTimeoutMs, ne);
assertExceptionContains("remaining name", ne);
} finally {
finLatch.countDown();
Expand Down

0 comments on commit 968158e

Please sign in to comment.