mirror of https://github.com/apache/openjpa.git
OPENJPA-1619 Fix intermittent TestTimestampVersion failures on various DBs when running on Windows
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@932043 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c6e4e39fe4
commit
1c76ad58a8
|
@ -47,7 +47,7 @@ public class TestTimestampVersion extends SingleEMFTestCase {
|
|||
|
||||
try {
|
||||
// delay to ensure the new timestamp exceeds the timer's resolution.
|
||||
Thread.sleep(100);
|
||||
Thread.sleep(500);
|
||||
} catch (InterruptedException e) {
|
||||
}
|
||||
|
||||
|
@ -63,7 +63,8 @@ public class TestTimestampVersion extends SingleEMFTestCase {
|
|||
em.getTransaction().begin();
|
||||
em.refresh(pc);
|
||||
Timestamp newVersion = pc.getVersion();
|
||||
assertTrue(newVersion.after(oldVersion));
|
||||
assertTrue("Expected newVersion=" + newVersion.toString() + " to be after oldVersion=" + oldVersion.toString(),
|
||||
newVersion.after(oldVersion));
|
||||
}
|
||||
|
||||
public void testBulkUpdateOnNumericVersion() {
|
||||
|
|
Loading…
Reference in New Issue