Commit 6ba110a
test: fix flaky additionalFinalizer in TriggerReconcilerOnAllEventIT (#3434)
* test: fix flaky additionalFinalizer in TriggerReconcilerOnAllEventIT
The phase-1 await could pass prematurely: right after create() the resource
already has exactly [ADDITIONAL_FINALIZER], before the operator adds its own
FINALIZER. This snapshotted a stale event count, so the phase-2
isEqualTo(eventCount + 1) assertion against a monotonic counter would overshoot
and time out.
Wait for the operator to add its own finalizer before deleting, so phase 1
reflects the completed add/mark-for-deletion/remove cycle and the baseline is
deterministic.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
* format
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
---------
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 039b02c commit 6ba110a
1 file changed
Lines changed: 11 additions & 0 deletions
File tree
- operator-framework/src/test/java/io/javaoperatorsdk/operator/baseapi/triggerallevent/eventing
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
133 | 144 | | |
134 | 145 | | |
135 | 146 | | |
| |||
0 commit comments