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:
Donald Woods 2010-04-08 18:13:38 +00:00
parent c6e4e39fe4
commit 1c76ad58a8
1 changed files with 3 additions and 2 deletions

View File

@ -47,7 +47,7 @@ public class TestTimestampVersion extends SingleEMFTestCase {
try { try {
// delay to ensure the new timestamp exceeds the timer's resolution. // delay to ensure the new timestamp exceeds the timer's resolution.
Thread.sleep(100); Thread.sleep(500);
} catch (InterruptedException e) { } catch (InterruptedException e) {
} }
@ -63,7 +63,8 @@ public class TestTimestampVersion extends SingleEMFTestCase {
em.getTransaction().begin(); em.getTransaction().begin();
em.refresh(pc); em.refresh(pc);
Timestamp newVersion = pc.getVersion(); 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() { public void testBulkUpdateOnNumericVersion() {