SOLR-9028: relax the SSLHandshakeException expectation - in some platforms/java# diff IOExceptions are thrown

This commit is contained in:
Chris Hostetter 2016-04-29 09:54:56 -07:00
parent 3d3c3fb5fc
commit 48f2b2a3bb
1 changed files with 1 additions and 2 deletions

View File

@ -24,7 +24,6 @@ import java.io.File;
import java.io.IOException;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLHandshakeException;
import org.apache.solr.SolrTestCaseJ4;
import org.apache.solr.client.solrj.embedded.JettyConfig;
@ -280,7 +279,7 @@ public class TestMiniSolrCloudClusterSSL extends SolrTestCaseJ4 {
if (sslConfig.isClientAuthMode()) {
// w/o a valid client cert, SSL connection should fail
expectThrows(SSLHandshakeException.class, () -> {
expectThrows(IOException.class, () -> {
doHeadRequest(client, url);
});
} else {