avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sylv...@apache.org
Subject cvs commit: avalon-excalibur/sourceresolve/src/test/org/apache/excalibur/source/test FileSourceTestCase.java
Date Mon, 07 Apr 2003 17:24:02 GMT
sylvain     2003/04/07 10:24:02

  Modified:    sourceresolve/src/test/org/apache/excalibur/source/test
                        FileSourceTestCase.java
  Log:
  Gump still fails. Could this be related to the filesystem time resolution ?
  
  Revision  Changes    Path
  1.3       +3 -10     avalon-excalibur/sourceresolve/src/test/org/apache/excalibur/source/test/FileSourceTestCase.java
  
  Index: FileSourceTestCase.java
  ===================================================================
  RCS file: /home/cvs/avalon-excalibur/sourceresolve/src/test/org/apache/excalibur/source/test/FileSourceTestCase.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- FileSourceTestCase.java	6 Apr 2003 11:44:05 -0000	1.2
  +++ FileSourceTestCase.java	7 Apr 2003 17:24:02 -0000	1.3
  @@ -242,15 +242,8 @@
           SourceValidity validity = child.getValidity();
           assertEquals("Validity is not valid", 1, validity.isValid());
   
  -        // Wait a bit, otherwise the update speed is faster than the clock resolution.
  -        // In real situations, this shouldn't be a problem, since it is very
  -        // unlikely for a file to be modified twice and validity checked in such a
  -        // small delay 
  -		long time = System.currentTimeMillis();
  -		do
  -		{
  -            Thread.sleep(100L);
  -		} while (System.currentTimeMillis() <= time);
  +        // Wait 1 second before updating the file
  +        Thread.sleep(1000L);
           
           // Now change its content
           PrintWriter pw = new PrintWriter(child.getOutputStream());
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message