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 committed by GitHub
parent a22d4ba859
commit 3f6762ec9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -109,4 +109,10 @@ public class AmazonCorrettoSslEngineTest extends SSLEngineTest {
@Override @Override
public void testMutualAuthValidClientCertChainTooLongFailRequireClientAuth() { 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);
}
} }