Use same JDK SSL test workaround when using ACCP as when just using the JDK SSL implementation (#9490)

Motivation:

14607979f6 added tests for using ACCP but did miss to use the same unwrapping technique of exceptions as JdkSslEngineTest. This can lead to test-failures on specific JDK versions

Modifications:

Add the same unwrapping code

Result:

No more test failures
This commit is contained in:
Norman Maurer 2019-08-21 20:27:55 +02:00
parent 2abaf50570
commit e6839aa228

View File

@ -109,4 +109,10 @@ public class AmazonCorrettoSslEngineTest extends SSLEngineTest {
@Override
public void testMutualAuthValidClientCertChainTooLongFailRequireClientAuth() {
}
@Override
protected boolean mySetupMutualAuthServerIsValidException(Throwable cause) {
// TODO(scott): work around for a JDK issue. The exception should be SSLHandshakeException.
return super.mySetupMutualAuthServerIsValidException(cause) || causedBySSLException(cause);
}
}