Fix SSLException check for JDK work around missed by 2dffc2f9fb

This commit is contained in:
Scott Mitchell 2017-02-20 21:38:04 -08:00
parent 08e0c612cf
commit e08a3b1f35

View File

@ -286,7 +286,7 @@ public class JdkSslEngineTest extends SSLEngineTest {
@Override
protected boolean mySetupMutualAuthServerIsValidException(Throwable cause) {
// TODO(scott): work around for a JDK issue. The exception should be SSLHandshakeException.
return super.mySetupMutualAuthServerIsValidException(cause) || cause instanceof SSLException;
return super.mySetupMutualAuthServerIsValidException(cause) || causedBySSLException(cause);
}
private void runTest() throws Exception {