diff --git a/modules/flowable-engine/src/test/java/org/flowable/engine/test/bpmn/event/timer/BoundaryTimerEventTest.java b/modules/flowable-engine/src/test/java/org/flowable/engine/test/bpmn/event/timer/BoundaryTimerEventTest.java index 680d8c583ef..04aca8ba469 100644 --- a/modules/flowable-engine/src/test/java/org/flowable/engine/test/bpmn/event/timer/BoundaryTimerEventTest.java +++ b/modules/flowable-engine/src/test/java/org/flowable/engine/test/bpmn/event/timer/BoundaryTimerEventTest.java @@ -544,7 +544,7 @@ public void testRescheduleBoundaryTimerOnUserTask() { Job timerJob = managementService.createTimerJobQuery().processInstanceId(processInstance.getId()).singleResult(); assertThat(timerJob).isNotNull(); long diffInMilliseconds = Math.abs(startTimeInMillis - timerJob.getDuedate().getTime()); - assertThat(diffInMilliseconds).isLessThan(100); + assertThat(diffInMilliseconds).isLessThan(5000); // reschedule timer for two hours from now calendar = Calendar.getInstance(); @@ -742,7 +742,7 @@ public void testRescheduleRepeatBoundaryTimer() { Job timerJob = managementService.createTimerJobQuery().processInstanceId(processInstance.getId()).singleResult(); assertThat(timerJob).isNotNull(); long diffInMilliseconds = Math.abs(startTimeInMillis - timerJob.getDuedate().getTime()); - assertThat(diffInMilliseconds).isLessThan(100); + assertThat(diffInMilliseconds).isLessThan(5000); // reschedule timer for two hours from now calendar = Calendar.getInstance(); @@ -806,7 +806,7 @@ public void testRescheduleBoundaryTimerOnSubProcess() { Job timerJob = managementService.createTimerJobQuery().processInstanceId(processInstance.getId()).singleResult(); assertThat(timerJob).isNotNull(); long diffInMilliseconds = Math.abs(startTimeInMillis - timerJob.getDuedate().getTime()); - assertThat(diffInMilliseconds).isLessThan(100); + assertThat(diffInMilliseconds).isLessThan(5000); // reschedule timer for two hours from now calendar = Calendar.getInstance();