db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/test/org/apache/ojb/broker OptimisticLockingTest.java
Date Fri, 26 Nov 2004 19:40:25 GMT
arminw      2004/11/26 11:40:25

  Modified:    src/test/org/apache/ojb/broker OptimisticLockingTest.java
  Log:
  check OL for timestamp sequences <50ms
  
  Revision  Changes    Path
  1.14      +7 -1      db-ojb/src/test/org/apache/ojb/broker/OptimisticLockingTest.java
  
  Index: OptimisticLockingTest.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/OptimisticLockingTest.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- OptimisticLockingTest.java	14 Sep 2004 16:46:08 -0000	1.13
  +++ OptimisticLockingTest.java	26 Nov 2004 19:40:25 -0000	1.14
  @@ -184,7 +184,13 @@
           broker.clearCache();
           LockedByTimestamp copy2 = (LockedByTimestamp) broker.getObjectByIdentity(oid);
   
  -        Thread.sleep(1000);	//mysql timestamp does not support milliseconds
  +        /*
  +        //mysql timestamp does not support milliseconds
  +        arminw:
  +        For proper test we need millisecond precision, so if mysql does not support
  +        this, better we let fail this test for mysql
  +        */
  +        Thread.sleep(50);
   
           copy1.setValue("copy 1");
           copy2.setValue("copy 2");
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message