Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0015950Openbravo ERPA. Platformpublic2011-02-11 08:462011-05-24 10:56
dalsasua 
dalsasua 
immediatemajorrandom
closedfixed 
20Ubuntu 10.10
 
 
Core
No
0015950: Randomly the jUnit testUpdateCurrencyByUser test fails
Randomly the jUnit testUpdateCurrencyByUser test fails
--- a/src-test/org/openbravo/test/dal/DalTest.java
+++ b/src-test/org/openbravo/test/dal/DalTest.java
@@ -145,17 +145,15 @@
   // test querying for a specific currency and then updating it
   // should fail for a user
   public void testUpdateCurrencyByUser() {
- setUserContext(getRandomUser().getId());
+ setUserContext("30BB6B32AE984CF08705C57A6C7FAFB9");
     final OBCriteria<Currency> obc = OBDal.getInstance().createCriteria(Currency.class);
     obc.add(Expression.eq(Currency.PROPERTY_ISOCODE, "USD"));
     final List<Currency> cs = obc.list();
closingMay2011
Issue History
2011-02-11 08:46dalsasuaNew Issue
2011-02-11 08:46dalsasuaAssigned To => dalsasua
2011-02-11 08:46dalsasuaModules => Core
2011-02-11 11:45dalsasuaStatusnew => scheduled
2011-02-11 11:45dalsasuafix_in_branch => pi
2011-02-11 11:49hgbotCheckin
2011-02-11 11:49hgbotNote Added: 0034148
2011-02-11 11:49hgbotStatusscheduled => resolved
2011-02-11 11:49hgbotResolutionopen => fixed
2011-02-11 11:49hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/bcbf5a3d9d1ff1ee138b2a862692d781014c2753 [^]
2011-02-14 13:19hgbotCheckin
2011-02-14 13:19hgbotNote Added: 0034177
2011-02-14 13:19hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/bcbf5a3d9d1ff1ee138b2a862692d781014c2753 [^] => http://code.openbravo.com/erp/devel/pi/rev/c36d47b6c770cba8d6bdf9716f450a4a58d86584 [^]
2011-05-24 10:08dalsasuaTag Attached: closingMay2011
2011-05-24 10:56dalsasuaStatusresolved => closed

Notes
(0034148)
hgbot   
2011-02-11 11:49   
Repository: erp/devel/pi
Changeset: bcbf5a3d9d1ff1ee138b2a862692d781014c2753
Author: David Alsasua <david.alsasua <at> openbravo.com>
Date: Fri Feb 11 11:47:20 2011 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/bcbf5a3d9d1ff1ee138b2a862692d781014c2753 [^]

Fixes issue 15950: Randomly junit test fails.
Substituted getRandomUser for a concrete one.

---
M src-test/org/openbravo/test/dal/DalTest.java
---
(0034177)
hgbot   
2011-02-14 13:19   
Repository: erp/devel/pi
Changeset: c36d47b6c770cba8d6bdf9716f450a4a58d86584
Author: David Alsasua <david.alsasua <at> openbravo.com>
Date: Mon Feb 14 13:17:41 2011 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/c36d47b6c770cba8d6bdf9716f450a4a58d86584 [^]

Fixes issue 15950: Randomly junit test fails.

---
M src-test/org/openbravo/test/dal/DalQueryTest.java
---