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:
parent
a22d4ba859
commit
3f6762ec9c
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user