Correctly detect exeception cause when using BoringSSL in SslErrorTest
Motivation: e9ce5048dfdfed32df28e46fae6e766d8fd6d734 added a testcase to ensure we correctly send the alert in all cases but did use a too strict message matching which did not work for BoringSSL as it not uses whitespaces but underscores. Modifications: Make the message matching less strict. Result: Test pass also when using BoringSSL.
This commit is contained in:
parent
1e8a533ef9
commit
d3535d31be
@ -290,7 +290,7 @@ public class SslErrorTest {
|
||||
// When the error is produced on the client side and the client side uses JDK as provider it will always
|
||||
// use "certificate unknown".
|
||||
!serverProduceError && clientProvider == SslProvider.JDK &&
|
||||
message.toLowerCase(Locale.UK).contains("certificate unknown")) {
|
||||
message.toLowerCase(Locale.UK).contains("unknown")) {
|
||||
promise.setSuccess(null);
|
||||
} else {
|
||||
Throwable error = new AssertionError("message not contains '" + messagePart + "': " + message);
|
||||
|
Loading…
x
Reference in New Issue
Block a user