Author: tolusha
Date: 2011-03-25 11:13:50 -0400 (Fri, 25 Mar 2011)
New Revision: 4176
Modified:
jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/value/TestPersistedValueData.java
Log:
EXOJCR-1027: wait while all testing threads are finished
Modified:
jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/value/TestPersistedValueData.java
===================================================================
---
jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/value/TestPersistedValueData.java 2011-03-25
11:36:59 UTC (rev 4175)
+++
jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/value/TestPersistedValueData.java 2011-03-25
15:13:50 UTC (rev 4176)
@@ -136,10 +136,15 @@
}
// should be enough to finish all the threads
- Thread.sleep(4000);
+ Thread.sleep(1000);
for (int i = 0; i < 10; i++)
{
+ p[i].join();
+ }
+
+ for (int i = 0; i < 10; i++)
+ {
assertEquals(100 * 100, p[i].getLen());
}
}