From df09d71c8b727800bd806767930f15eaea885865 Mon Sep 17 00:00:00 2001 From: Stones Date: Fri, 30 Oct 2026 10:16:00 -0500 Subject: [PATCH] Allow more time for the timer due date in BoundaryTimerEventTest Three tests asserted that the timer due date is within 100 ms of a timestamp taken before the process start, which fails on a loaded machine. Allow 5 seconds. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../test/bpmn/event/timer/BoundaryTimerEventTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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();