Skip to content

Commit 488d6e7

Browse files
committed
JSSE: fix WolfSSLServerSocketTest detection of error string message
1 parent 14bb27b commit 488d6e7

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/test/com/wolfssl/provider/jsse/test/WolfSSLServerSocketTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,8 +525,10 @@ public Void call() throws Exception {
525525
fail();
526526

527527
} catch (SSLHandshakeException e) {
528-
/* expected */
529-
if (!e.toString().contains("ASN no signer")) {
528+
/* Expected. Different versions of wolfSSL can display
529+
* varying error strings. Check for either here. */
530+
if (!e.toString().contains("ASN no signer") &&
531+
!e.toString().contains("certificate verify failed")) {
530532
System.out.println("\t\t... failed");
531533
fail();
532534
}

0 commit comments

Comments
 (0)