Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down