Skip to content

Commit 12a3aa9

Browse files
Fix SSlTest exception message assertion (#91)
1 parent 31ed3ae commit 12a3aa9

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

  • its/it-tests/src/test/java/com/sonar/scanner/api/it

its/it-tests/src/test/java/com/sonar/scanner/api/it/SSLTest.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,12 @@ public void simple_analysis_with_server_and_without_client_certificate_is_failin
220220
"Caused by: javax\\.net\\.ssl\\.SSLProtocolException: Broken pipe \\(Write failed\\).*")
221221
||
222222
p.matches("(?s).*org\\.sonarsource\\.scanner\\.api\\.internal\\.ScannerException: Unable to execute SonarScanner analysis.*" +
223-
"Caused by: javax\\.net\\.ssl\\.SSLHandshakeException: Received fatal alert: bad_certificate.*"));
223+
"Caused by: javax\\.net\\.ssl\\.SSLHandshakeException: Received fatal alert: bad_certificate.*")
224+
||
225+
p.matches("(?s).*org\\.sonarsource\\.scanner\\.api\\.internal\\.ScannerException: Unable to execute SonarScanner analysis.*" +
226+
"Caused by: java\\.net\\.SocketException: Broken pipe \\(Write failed\\).*" +
227+
"java\\.base/sun\\.security\\.ssl\\.SSLSocketOutputRecord.*")
228+
);
224229
}
225230

226231
private static Path project(String projectName) {

0 commit comments

Comments
 (0)