logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r1166042 - /logging/log4net/trunk/tests/src/Appender/RemotingAppenderTest.cs
Date Wed, 07 Sep 2011 08:18:53 GMT
Author: bodewig
Date: Wed Sep  7 08:18:53 2011
New Revision: 1166042

URL: http://svn.apache.org/viewvc?rev=1166042&view=rev
Log:
RemotingAppenderTest fails on very first test because of timing issues - at least on my machine.
 Avoid problems by waiting a bit longer.  LOG4NET-301 and LOG4NET-265

Modified:
    logging/log4net/trunk/tests/src/Appender/RemotingAppenderTest.cs

Modified: logging/log4net/trunk/tests/src/Appender/RemotingAppenderTest.cs
URL: http://svn.apache.org/viewvc/logging/log4net/trunk/tests/src/Appender/RemotingAppenderTest.cs?rev=1166042&r1=1166041&r2=1166042&view=diff
==============================================================================
--- logging/log4net/trunk/tests/src/Appender/RemotingAppenderTest.cs (original)
+++ logging/log4net/trunk/tests/src/Appender/RemotingAppenderTest.cs Wed Sep  7 08:18:53 2011
@@ -66,7 +66,7 @@ namespace log4net.Tests.Appender
 			root.Log(Level.Debug, testMessage, null);
 
 			// Wait for the remoted object to be delivered
-			Thread.Sleep(1000);
+			Thread.Sleep(2000);
 
 			LoggingEvent[] events = RemoteLoggingSinkImpl.Instance.Events;
 			Assert.AreEqual(1, events.Length, "Expect to receive 1 remoted event");
@@ -92,7 +92,7 @@ namespace log4net.Tests.Appender
 			root.Log(Level.Debug, "test message", null);
 
 			// Wait for the remoted object to be delivered
-			Thread.Sleep(1000);
+			Thread.Sleep(2000);
 
 			LoggingEvent[] events = RemoteLoggingSinkImpl.Instance.Events;
 			Assert.AreEqual(1, events.Length, "Expect to receive 1 remoted event");
@@ -121,7 +121,7 @@ namespace log4net.Tests.Appender
 			root.Log(Level.Debug, "test message", null);
 
 			// Wait for the remoted object to be delivered
-			Thread.Sleep(1000);
+			Thread.Sleep(2000);
 
 			LoggingEvent[] events = RemoteLoggingSinkImpl.Instance.Events;
 			Assert.AreEqual(1, events.Length, "Expect to receive 1 remoted event");
@@ -156,7 +156,7 @@ namespace log4net.Tests.Appender
 			root.Log(Level.Debug, testMessage, null);
 
 			// Wait for the remoted object to be delivered
-			Thread.Sleep(1000);
+			Thread.Sleep(2000);
 
 			LoggingEvent[] events = RemoteLoggingSinkImpl.Instance.Events;
 			Assert.AreEqual(1, events.Length, "Expect to receive 1 remoted event");



Mime
View raw message