You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2011/02/17 23:11:39 UTC

svn commit: r1071810 - /activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/test/csharp/MessageProducerTest.cs

Author: tabish
Date: Thu Feb 17 22:11:39 2011
New Revision: 1071810

URL: http://svn.apache.org/viewvc?rev=1071810&view=rev
Log:
Apparently under very heavy CPU load the clock / timer can be inaccurate so give this test a bit more leaway.

Modified:
    activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/test/csharp/MessageProducerTest.cs

Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/test/csharp/MessageProducerTest.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/test/csharp/MessageProducerTest.cs?rev=1071810&r1=1071809&r2=1071810&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/test/csharp/MessageProducerTest.cs (original)
+++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/test/csharp/MessageProducerTest.cs Thu Feb 17 22:11:39 2011
@@ -54,7 +54,7 @@ namespace Apache.NMS.ActiveMQ.Test
 						
 						TimeSpan elapsed = DateTime.Now - start;
 						// Make sure we timed out.
-						Assert.GreaterOrEqual((int) elapsed.TotalMilliseconds, timeout - 10, "Did not reach timeout limit.");
+						Assert.GreaterOrEqual((int) elapsed.TotalMilliseconds, timeout - 75, "Did not reach timeout limit.");
 					}
 				}
 			}