Skip to content

Commit

Permalink
HTTPCORE-622: JSSEProviderIntegrationTest fails if Conscrypt JNI wrap…
Browse files Browse the repository at this point in the history
…per cannot be loaded

This closes #181
  • Loading branch information
michael-o committed Jan 3, 2020
1 parent 8511b22 commit 36c0edc
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -116,7 +116,11 @@ public static void determineJavaVersion() {
@Override
protected void before() throws Throwable {
if ("Conscrypt".equalsIgnoreCase(securityProviderName)) {
securityProvider = Conscrypt.newProviderBuilder().provideTrustManager(true).build();
try {
securityProvider = Conscrypt.newProviderBuilder().provideTrustManager(true).build();
} catch (final UnsatisfiedLinkError e) {
Assume.assumeFalse("Conscrypt provider failed to be loaded: " + e.getMessage(), true);
}
} else {
securityProvider = null;
}
Expand Down

0 comments on commit 36c0edc

Please sign in to comment.