summary refs log tree commit diff
path: root/crypto/test
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-07-12 13:29:34 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-07-12 13:29:34 +0700
commitf9cabf17610f0b9ed9301e690551b98ff82e3987 (patch)
tree2ff0772e441551a4fe22a7795609ed1f1e2dda64 /crypto/test
parentTLS: Add AbstractTlsServer.GetDetailMessageNoCipherSuite method (diff)
downloadBouncyCastle.NET-ed25519-f9cabf17610f0b9ed9301e690551b98ff82e3987.tar.xz
Reduce DTLS test timeouts
Diffstat (limited to 'crypto/test')
-rw-r--r--crypto/test/src/tls/test/DtlsProtocolTest.cs4
-rw-r--r--crypto/test/src/tls/test/DtlsPskProtocolTest.cs2
2 files changed, 3 insertions, 3 deletions
diff --git a/crypto/test/src/tls/test/DtlsProtocolTest.cs b/crypto/test/src/tls/test/DtlsProtocolTest.cs
index 0591b35c8..9e3f968d1 100644
--- a/crypto/test/src/tls/test/DtlsProtocolTest.cs
+++ b/crypto/test/src/tls/test/DtlsProtocolTest.cs
@@ -92,7 +92,7 @@ namespace Org.BouncyCastle.Tls.Tests
                             if (m_isShutdown)
                                 return;
 
-                            int length = m_serverTransport.Receive(buf, dummyOffset, receiveLimit, 1000);
+                            int length = m_serverTransport.Receive(buf, dummyOffset, receiveLimit, 100);
                             if (length > 0)
                             {
                                 request = verifier.VerifyRequest(clientID, buf, dummyOffset, length, m_serverTransport);
@@ -108,7 +108,7 @@ namespace Org.BouncyCastle.Tls.Tests
                         byte[] buf = new byte[dtlsTransport.GetReceiveLimit()];
                         while (!m_isShutdown)
                         {
-                            int length = dtlsTransport.Receive(buf, 0, buf.Length, 1000);
+                            int length = dtlsTransport.Receive(buf, 0, buf.Length, 100);
                             if (length >= 0)
                             {
                                 dtlsTransport.Send(buf, 0, length);
diff --git a/crypto/test/src/tls/test/DtlsPskProtocolTest.cs b/crypto/test/src/tls/test/DtlsPskProtocolTest.cs
index b30dbb847..412548442 100644
--- a/crypto/test/src/tls/test/DtlsPskProtocolTest.cs
+++ b/crypto/test/src/tls/test/DtlsPskProtocolTest.cs
@@ -74,7 +74,7 @@ namespace Org.BouncyCastle.Tls.Tests
                     byte[] buf = new byte[dtlsServer.GetReceiveLimit()];
                     while (!m_isShutdown)
                     {
-                        int length = dtlsServer.Receive(buf, 0, buf.Length, 1000);
+                        int length = dtlsServer.Receive(buf, 0, buf.Length, 100);
                         if (length >= 0)
                         {
                             dtlsServer.Send(buf, 0, length);