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 **"); } } }