Skip to content

Commit 8f09ead

Browse files
committed
HADOOP-19719. Sync with (committed) trunk changes
1 parent 2b58c64 commit 8f09ead

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/ssl/TestDelegatingSSLSocketFactory.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@
1919
package org.apache.hadoop.security.ssl;
2020

2121
import java.io.IOException;
22+
import java.security.NoSuchAlgorithmException;
2223
import java.util.Arrays;
2324

25+
import org.assertj.core.api.Assertions;
2426
import org.junit.Test;
2527

2628
import org.apache.hadoop.util.NativeCodeLoader;
2729

28-
import static org.apache.hadoop.test.GenericTestUtils.assertExceptionContains;
2930
import static org.assertj.core.api.Assertions.assertThat;
3031
import static org.junit.Assume.assumeTrue;
3132

@@ -47,7 +48,10 @@ public void testOpenSSL() {
4748
.getProviderName()).contains("openssl");
4849
} catch (IOException e) {
4950
// if this is caused by a wildfly version error, downgrade to an assume
50-
assertExceptionContains("GLIBC_2.34", e);
51+
final Throwable cause = e.getCause();
52+
Assertions.assertThat(cause)
53+
.describedAs("Cause of %s: %s", e, cause)
54+
.isInstanceOf(NoSuchAlgorithmException.class);
5155
assumeTrue("wildfly library not compatible with this OS version", false);
5256
}
5357
}

0 commit comments

Comments
 (0)