From e41bd6e1d2932f81ef5e3f393df348a5b12709fb Mon Sep 17 00:00:00 2001 From: yallie Date: Fri, 15 Jan 2021 10:08:58 +0300 Subject: [PATCH] Minor changes. --- source/Zyan.Tests/TcpExConnectionLockRegressionTests.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/Zyan.Tests/TcpExConnectionLockRegressionTests.cs b/source/Zyan.Tests/TcpExConnectionLockRegressionTests.cs index 1292b7a..cc9a8f1 100644 --- a/source/Zyan.Tests/TcpExConnectionLockRegressionTests.cs +++ b/source/Zyan.Tests/TcpExConnectionLockRegressionTests.cs @@ -185,6 +185,7 @@ public void CreateDisposeAndRecreateConnectionUsingTcpDuplexChannel() { var url = "tcpex://localhost:8092/TcpExConnectionLockRegressionTestHost_TcpDuplex"; var protocol = new TcpDuplexClientProtocolSetup(true); + var lessThanTimeout = 10; using (var connection = new ZyanConnection(url, protocol)) { @@ -208,7 +209,7 @@ public void CreateDisposeAndRecreateConnectionUsingTcpDuplexChannel() try { - // this connection should time out + // this connection should time out in more than lessThanTimeout seconds new ZyanConnection(url.Replace("localhost", "example.com"), protocol); } catch (Exception ex) @@ -223,7 +224,8 @@ public void CreateDisposeAndRecreateConnectionUsingTcpDuplexChannel() sw.Stop(); Assert.IsTrue(badConnectionInitiated); - Assert.IsTrue(sw.Elapsed.TotalSeconds < 10); + Assert.IsTrue(sw.Elapsed.TotalSeconds < lessThanTimeout); + Trace.WriteLine("** CreateDisposeAndRecreateConnectionUsingTcpDuplexChannel test finished **"); } } }