You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by re...@apache.org on 2011/07/04 13:13:11 UTC

svn commit: r1142625 - /cocoon/cocoon3/trunk/cocoon-sample-webapp/src/test/java/org/apache/cocoon/it/CachingOfPipelinesTest.java

Author: reinhard
Date: Mon Jul  4 11:13:11 2011
New Revision: 1142625

URL: http://svn.apache.org/viewvc?rev=1142625&view=rev
Log:
wait longer for the server to refresh the resource in the background

Modified:
    cocoon/cocoon3/trunk/cocoon-sample-webapp/src/test/java/org/apache/cocoon/it/CachingOfPipelinesTest.java

Modified: cocoon/cocoon3/trunk/cocoon-sample-webapp/src/test/java/org/apache/cocoon/it/CachingOfPipelinesTest.java
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-sample-webapp/src/test/java/org/apache/cocoon/it/CachingOfPipelinesTest.java?rev=1142625&r1=1142624&r2=1142625&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-sample-webapp/src/test/java/org/apache/cocoon/it/CachingOfPipelinesTest.java (original)
+++ cocoon/cocoon3/trunk/cocoon-sample-webapp/src/test/java/org/apache/cocoon/it/CachingOfPipelinesTest.java Mon Jul  4 11:13:11 2011
@@ -60,10 +60,9 @@ public class CachingOfPipelinesTest exte
     }
 
     /**
-     * This async-caching pipeline returns the same result for 2 seconds (see the 'expires'
-     * parameter in the sitemap). After 2.1 seconds it still produces the same result but because
-     * the cache key of this pipeline has changed, a separate thread is started that refreshs the
-     * cache.
+     * This async-caching pipeline returns the same result for 2 seconds (see the 'expires' parameter in the sitemap).
+     * After 2.1 seconds it still produces the same result but because the cache key of this pipeline has changed, a
+     * separate thread is started that refreshs the cache.
      * 
      * After waiting for another second, a fresh result is returned.
      */
@@ -76,17 +75,16 @@ public class CachingOfPipelinesTest exte
         String content2 = this.response.getContentAsString();
         assertEquals("The response has to be the same as before.", content1, content2);
 
-        Thread.sleep(500);
+        Thread.sleep(1000);
         this.loadResponse("/expires/async-caching-pipeline/on");
         String content3 = this.response.getContentAsString();
         assertFalse("The response mustn't be the same as before.", content3.equals(content2));
-
     }
 
     /**
-     * This caching pipeline returns the same result for 2 seconds (see the 'expires' parameter in
-     * the sitemap). After 2.1 it produces a different result because the first result generated has
-     * become invalid in the meantime and the refresh is being performed in the same thread.
+     * This caching pipeline returns the same result for 2 seconds (see the 'expires' parameter in the sitemap). After
+     * 2.1 it produces a different result because the first result generated has become invalid in the meantime and the
+     * refresh is being performed in the same thread.
      * 
      * @see {@link #testExpiresAsyncCaching()}
      */