Return-Path: Delivered-To: apmail-incubator-geronimo-cvs-archive@www.apache.org Received: (qmail 54852 invoked from network); 12 Sep 2003 15:35:11 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 12 Sep 2003 15:35:11 -0000 Received: (qmail 65826 invoked by uid 500); 12 Sep 2003 15:34:43 -0000 Delivered-To: apmail-incubator-geronimo-cvs-archive@incubator.apache.org Received: (qmail 65776 invoked by uid 500); 12 Sep 2003 15:34:43 -0000 Mailing-List: contact geronimo-cvs-help@incubator.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: geronimo-dev@incubator.apache.org Delivered-To: mailing list geronimo-cvs@incubator.apache.org Received: (qmail 65723 invoked from network); 12 Sep 2003 15:34:42 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 12 Sep 2003 15:34:42 -0000 Received: (qmail 54659 invoked by uid 1715); 12 Sep 2003 15:34:46 -0000 Date: 12 Sep 2003 15:34:46 -0000 Message-ID: <20030912153446.54658.qmail@minotaur.apache.org> From: jdillon@apache.org To: incubator-geronimo-cvs@apache.org Subject: cvs commit: incubator-geronimo/modules/common/src/test/org/apache/geronimo/common/task URLMonitorTaskTest.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N jdillon 2003/09/12 08:34:46 Modified: modules/common/src/test/org/apache/geronimo/common/task URLMonitorTaskTest.java Log: o Applied patch GERONIMO-81 Revision Changes Path 1.3 +4 -2 incubator-geronimo/modules/common/src/test/org/apache/geronimo/common/task/URLMonitorTaskTest.java Index: URLMonitorTaskTest.java =================================================================== RCS file: /home/cvs/incubator-geronimo/modules/common/src/test/org/apache/geronimo/common/task/URLMonitorTaskTest.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- URLMonitorTaskTest.java 1 Sep 2003 15:22:24 -0000 1.2 +++ URLMonitorTaskTest.java 12 Sep 2003 15:34:46 -0000 1.3 @@ -142,7 +142,9 @@ // Schedule the timer now Timer timer = new Timer(); - timer.schedule(urlMonitorTask, 0); + + // Use a value >=0 to avoid race conditions + timer.schedule(urlMonitorTask, 20); // Change the last modified and get the last modified from the file, // since it might be truncated while setting