Return-Path: X-Original-To: apmail-cocoon-cvs-archive@www.apache.org Delivered-To: apmail-cocoon-cvs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EA9A26A25 for ; Mon, 4 Jul 2011 11:13:36 +0000 (UTC) Received: (qmail 23654 invoked by uid 500); 4 Jul 2011 11:13:36 -0000 Delivered-To: apmail-cocoon-cvs-archive@cocoon.apache.org Received: (qmail 23548 invoked by uid 500); 4 Jul 2011 11:13:34 -0000 Mailing-List: contact cvs-help@cocoon.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@cocoon.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@cocoon.apache.org Received: (qmail 23540 invoked by uid 99); 4 Jul 2011 11:13:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jul 2011 11:13:33 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jul 2011 11:13:31 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 9120B2388900 for ; Mon, 4 Jul 2011 11:13:11 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1142625 - /cocoon/cocoon3/trunk/cocoon-sample-webapp/src/test/java/org/apache/cocoon/it/CachingOfPipelinesTest.java Date: Mon, 04 Jul 2011 11:13:11 -0000 To: cvs@cocoon.apache.org From: reinhard@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110704111311.9120B2388900@eris.apache.org> 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()} */