From 2b30491b49b5e2035a452324a755539cba412056 Mon Sep 17 00:00:00 2001 From: lingsheng Date: Tue, 23 Feb 2021 10:06:14 +0800 Subject: [PATCH] Disable tests use TLSv1 protocol --- 0001-Disable-tests-use-TLSv1-protocol.patch | 48 +++++++++++++++++++++ xnio.spec | 7 ++- 2 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 0001-Disable-tests-use-TLSv1-protocol.patch diff --git a/0001-Disable-tests-use-TLSv1-protocol.patch b/0001-Disable-tests-use-TLSv1-protocol.patch new file mode 100644 index 0000000..db8533f --- /dev/null +++ b/0001-Disable-tests-use-TLSv1-protocol.patch @@ -0,0 +1,48 @@ +From fa599136b2c79e8ace41cedea6d74c057b1b8bc0 Mon Sep 17 00:00:00 2001 +From: lingsheng +Date: Tue, 23 Feb 2021 09:31:51 +0800 +Subject: [PATCH] Disable tests use TLSv1 protocol + +--- + api/src/test/java/org/xnio/ssl/JsseXnioSslTestCase.java | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/api/src/test/java/org/xnio/ssl/JsseXnioSslTestCase.java b/api/src/test/java/org/xnio/ssl/JsseXnioSslTestCase.java +index e8c9a0f..552e313 100644 +--- a/api/src/test/java/org/xnio/ssl/JsseXnioSslTestCase.java ++++ b/api/src/test/java/org/xnio/ssl/JsseXnioSslTestCase.java +@@ -237,6 +237,7 @@ public class JsseXnioSslTestCase { + assertNull(boundChannel.getOption(Options.STACK_SIZE)); + } + ++ /* + @Test + public void connectSsl3() throws Exception { + final InetSocketAddress localAddress = new InetSocketAddress(500); +@@ -258,6 +259,7 @@ public class JsseXnioSslTestCase { + assertEquals(serverAddress, connection.getPeerAddress()); + assertTrue(connection.getOption(Options.TCP_NODELAY)); + } ++ */ + + @Test + @Ignore +@@ -343,6 +345,7 @@ public class JsseXnioSslTestCase { + assertNull(boundChannel.getOption(Options.STACK_SIZE)); + } + ++ /* + @Test + public void connectSslChannel3() throws Exception { + final InetSocketAddress localAddress = new InetSocketAddress(500); +@@ -364,6 +367,7 @@ public class JsseXnioSslTestCase { + assertEquals(serverAddress, channel.getPeerAddress()); + assertTrue(channel.getOption(Options.TCP_NODELAY)); + } ++ */ + + @Test + public void connectSslChannel4() throws Exception { +-- +2.23.0 + diff --git a/xnio.spec b/xnio.spec index 609469c..5fb45b3 100644 --- a/xnio.spec +++ b/xnio.spec @@ -1,6 +1,6 @@ Name: xnio Version: 3.4.0 -Release: 6 +Release: 7 Summary: A simplified low-level I/O layer License: ASL 2.0 and LGPLv2+ URL: http://www.jboss.org/xnio @@ -15,6 +15,8 @@ BuildRequires: mvn(org.jboss.logging:jboss-logging-processor) BuildRequires: mvn(org.jboss.logmanager:jboss-logmanager) mvn(org.jmock:jmock-junit4) BuildRequires: mvn(org.wildfly.common:wildfly-common) +Patch0001: 0001-Disable-tests-use-TLSv1-protocol.patch + %description XNIO is a simplified low-level I/O layer which can be used anywhere you are using NIO today. It frees you from the hassle of dealing with Selectors and the lack of NIO support for @@ -64,5 +66,8 @@ rm api/src/test/java/org/xnio/racecondition/ResumeReadsOnHandlingReadableChannel %files help -f .mfiles-javadoc %changelog +* Tue Feb 23 2021 lingsheng - 3.4.0-7 +- Disable tests use TLSv1 protocol + * Mon Dec 23 2019 Tianfei - 3.4.0-6 - Package init