You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Remko Popma <re...@gmail.com> on 2014/05/17 00:41:54 UTC
Re: svn commit: r1595334 - /logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/net/server/AbstractSocketServerTest.java
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, ggregory@apache.org 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: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org