You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@tomee.apache.org by bu...@apache.org on 2014/04/29 13:13:16 UTC
svn commit: r907296 - in /websites/staging/tomee/trunk: cgi-bin/ content/
content/examples-trunk/async-methods/README.html
content/examples-trunk/async-methods/src/test/java/org/superbiz/async/JobProcessorTest.java
Author: buildbot
Date: Tue Apr 29 11:13:16 2014
New Revision: 907296
Log:
Staging update by buildbot for tomee
Modified:
websites/staging/tomee/trunk/cgi-bin/ (props changed)
websites/staging/tomee/trunk/content/ (props changed)
websites/staging/tomee/trunk/content/examples-trunk/async-methods/README.html
websites/staging/tomee/trunk/content/examples-trunk/async-methods/src/test/java/org/superbiz/async/JobProcessorTest.java
Propchange: websites/staging/tomee/trunk/cgi-bin/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Tue Apr 29 11:13:16 2014
@@ -1 +1 @@
-1590798
+1590951
Propchange: websites/staging/tomee/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Tue Apr 29 11:13:16 2014
@@ -1 +1 @@
-1590798
+1590951
Modified: websites/staging/tomee/trunk/content/examples-trunk/async-methods/README.html
==============================================================================
--- websites/staging/tomee/trunk/content/examples-trunk/async-methods/README.html (original)
+++ websites/staging/tomee/trunk/content/examples-trunk/async-methods/README.html Tue Apr 29 11:13:16 2014
@@ -219,8 +219,10 @@ public void test() throws Exception {
final long total = TimeUnit.NANOSECONDS.toSeconds(System.nanoTime() - start);
// Execution should be around 9 - 21 seconds
- assertTrue("" + total, total > 9);
- assertTrue("" + total, total < 21);
+ // The execution time depends on the number of threads available for asynchronous execution.
+ // In the best case it is 10s plus some minimal processing time.
+ assertTrue("Expected > 9 but was: " + total, total > 9);
+ assertTrue("Expected < 21 but was: " + total, total < 21);
}
}
Modified: websites/staging/tomee/trunk/content/examples-trunk/async-methods/src/test/java/org/superbiz/async/JobProcessorTest.java
==============================================================================
--- websites/staging/tomee/trunk/content/examples-trunk/async-methods/src/test/java/org/superbiz/async/JobProcessorTest.java (original)
+++ websites/staging/tomee/trunk/content/examples-trunk/async-methods/src/test/java/org/superbiz/async/JobProcessorTest.java Tue Apr 29 11:13:16 2014
@@ -56,8 +56,10 @@ public class JobProcessorTest extends Te
final long total = TimeUnit.NANOSECONDS.toSeconds(System.nanoTime() - start);
// Execution should be around 9 - 21 seconds
- assertTrue("" + total, total > 9);
- assertTrue("" + total, total < 21);
+ // The execution time depends on the number of threads available for asynchronous execution.
+ // In the best case it is 10s plus some minimal processing time.
+ assertTrue("Expected > 9 but was: " + total, total > 9);
+ assertTrue("Expected < 21 but was: " + total, total < 21);
}