You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2026/06/18 07:58:47 UTC
(tomcat) branch main updated: Add missing assert.
This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new fe0f91a3f7 Add missing assert.
fe0f91a3f7 is described below
commit fe0f91a3f714d96ca67b1f5dc912c81880a3ba1d
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Thu Jun 18 08:57:43 2026 +0100
Add missing assert.
---
test/org/apache/tomcat/util/net/TestSslHandshakeFailure.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/test/org/apache/tomcat/util/net/TestSslHandshakeFailure.java b/test/org/apache/tomcat/util/net/TestSslHandshakeFailure.java
index ba33e26bc1..06ab3b9a1d 100644
--- a/test/org/apache/tomcat/util/net/TestSslHandshakeFailure.java
+++ b/test/org/apache/tomcat/util/net/TestSslHandshakeFailure.java
@@ -26,6 +26,7 @@ import javax.net.ssl.HttpsURLConnection;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLHandshakeException;
+import org.junit.Assert;
import org.junit.Test;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameter;
@@ -79,6 +80,7 @@ public class TestSslHandshakeFailure extends TomcatBaseTest {
try {
getUrl("https://localhost:" + getPort() + "/");
+ Assert.fail("SSLHandshakeException expected, but handshake did not fail");
} catch (SSLHandshakeException t) {
// Expected
} catch (SocketException e) {
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: (tomcat) branch main updated: Add missing assert.
Posted by Mark Thomas <ma...@apache.org>.
Sorry for the noise. E_NO_CAFFINE.
Mark
On 18/06/2026 08:58, markt@apache.org wrote:
> This is an automated email from the ASF dual-hosted git repository.
>
> markt-asf pushed a commit to branch main
> in repository https://gitbox.apache.org/repos/asf/tomcat.git
>
>
> The following commit(s) were added to refs/heads/main by this push:
> new fe0f91a3f7 Add missing assert.
> fe0f91a3f7 is described below
>
> commit fe0f91a3f714d96ca67b1f5dc912c81880a3ba1d
> Author: Mark Thomas <ma...@apache.org>
> AuthorDate: Thu Jun 18 08:57:43 2026 +0100
>
> Add missing assert.
> ---
> test/org/apache/tomcat/util/net/TestSslHandshakeFailure.java | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/test/org/apache/tomcat/util/net/TestSslHandshakeFailure.java b/test/org/apache/tomcat/util/net/TestSslHandshakeFailure.java
> index ba33e26bc1..06ab3b9a1d 100644
> --- a/test/org/apache/tomcat/util/net/TestSslHandshakeFailure.java
> +++ b/test/org/apache/tomcat/util/net/TestSslHandshakeFailure.java
> @@ -26,6 +26,7 @@ import javax.net.ssl.HttpsURLConnection;
> import javax.net.ssl.SSLContext;
> import javax.net.ssl.SSLHandshakeException;
>
> +import org.junit.Assert;
> import org.junit.Test;
> import org.junit.runners.Parameterized;
> import org.junit.runners.Parameterized.Parameter;
> @@ -79,6 +80,7 @@ public class TestSslHandshakeFailure extends TomcatBaseTest {
>
> try {
> getUrl("https://localhost:" + getPort() + "/");
> + Assert.fail("SSLHandshakeException expected, but handshake did not fail");
> } catch (SSLHandshakeException t) {
> // Expected
> } catch (SocketException e) {
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org