Feel free to try some different ideas... This is the simplest but not the fastest.
Gary <div>-------- Original message --------</div><div>From: Remko Popma <[email protected]> </div><div>Date:05/16/2014 18:41 (GMT-05:00) </div><div>To: Developers List Log4J <[email protected]> </div><div>Subject: Re: svn commit: r1595334 - /logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/net/server/AbstractSocketServerTest.java </div><div> </div>I don't know how many tests use this class, but they each take roughly 8 seconds on my laptop now... Altogether about a minute (maybe more) of the build is spent here. Is there not a different way to check if events have all arrived? Perhaps multiple short sleeps? Or use a "well-known" constant as a closing message, where client tests always send that when done? There may be other ways, just throwing out some ideas. Sent from my iPhone > On 2014/05/17, at 5:12, [email protected] wrote: > > Author: ggregory > Date: Fri May 16 20:12:10 2014 > New Revision: 1595334 > > URL: http://svn.apache.org/r1595334 > Log: > Wait a little longer for the server to process all requests. > > Modified: > > logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/net/server/AbstractSocketServerTest.java > > Modified: > logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/net/server/AbstractSocketServerTest.java > URL: > http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/net/server/AbstractSocketServerTest.java?rev=1595334&r1=1595333&r2=1595334&view=diff > ============================================================================== > --- > logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/net/server/AbstractSocketServerTest.java > (original) > +++ > logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/net/server/AbstractSocketServerTest.java > Fri May 16 20:12:10 2014 > @@ -189,8 +189,8 @@ public abstract class AbstractSocketServ > rootLogger.debug(message); > } > try { > - // Let the server side read the messages. > - Thread.sleep(2000); > + // Let the server-side read the messages. > + Thread.sleep(4000); > } catch (Exception e) { > e.printStackTrace(); > } > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
