Commit 19df58f
committed
Fix flaky BoundaryTimerEventTest by fixing the clock before process start
The timer due date was computed from the real system clock, but the
clock was only advanced relative to a Date captured before the process
started. On slow databases the elapsed time between capturing startTime
and the actual timer creation could exceed the 5-second buffer, leaving
the timer not yet executable when the wait loop checked.1 parent 9e7fc9c commit 19df58f
1 file changed
Lines changed: 3 additions & 0 deletions
File tree
- modules/flowable-engine/src/test/java/org/flowable/engine/test/bpmn/event/timer
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| |||
174 | 175 | | |
175 | 176 | | |
176 | 177 | | |
| 178 | + | |
177 | 179 | | |
178 | 180 | | |
179 | 181 | | |
| |||
208 | 210 | | |
209 | 211 | | |
210 | 212 | | |
| 213 | + | |
211 | 214 | | |
212 | 215 | | |
213 | 216 | | |
| |||
0 commit comments