Repository navigation
Commit e6a7426
committed
test: deflake additionalEventDuringRetryOnDeleteEvent
The test released the blocked reconciler right after the update call returned,
but the update event still had to travel back through the informer. When the
reconciliation failed before the event was registered, the framework treated
the failure as a plain retry (consuming the last attempt) instead of instantly
re-triggering because of a superseding event, so only 4 instead of 5
reconciliations happened.
Wait for isNextReconciliationImminent() in the reconciler, which reflects
exactly the state the framework checks after the reconciliation fails and
cannot be unset while it is in progress. Also fix the isWaiting() assertion
that had no terminal assertion and was therefore a no-op.1 parent 748f3a3 commit e6a7426
2 files changed
Lines changed: 18 additions & 3 deletions
File tree
- operator-framework/src/test/java/io/javaoperatorsdk/operator/baseapi/triggerallevent/eventing
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
| 195 | + | |
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
203 | 205 | | |
204 | 206 | | |
205 | 207 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
38 | 42 | | |
39 | 43 | | |
40 | 44 | | |
| |||
82 | 86 | | |
83 | 87 | | |
84 | 88 | | |
85 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
86 | 99 | | |
87 | 100 | | |
88 | 101 | | |
| |||
0 commit comments