Fix clock sync (#1287)

Test only change - Fix clock sync timing issues with tests using -DdbClockDelta
This commit is contained in:
Roland Praml authored and Rob Bygrave committed 2018-02-27 10:59:19 +13:00
1 parent 10f3d85d9f
commit 3f8b9529e1
5 files changed
+24 -3

No files matched your search

@@ -34,7 +34,7 @@ public class TestHistoryInsert extends BaseTestCase {
Ebean.save(user);
logger.info("-- initial save");
Thread.sleep(100);
Thread.sleep(DB_CLOCK_DELTA); // wait, so that our system clock can catch up
Timestamp afterInsert = new Timestamp(System.currentTimeMillis());
List<SqlRow> history = fetchHistory(user);