Repository navigation
Commit cee2934
fix(test): avoid NPE on missing status in WorkflowAllFeatureIT (#3736)
The reconciliation counter is incremented at the start of reconcile(),
before the status patch is applied, so the await condition could see a
positive count, an existing Deployment and a still-null status. The
resulting NullPointerException is not an AssertionError, so Awaitility
fails immediately instead of polling again. Assert the status is not
null first so the condition is retried until the patch lands.
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent 07e1af3 commit cee2934
1 file changed
Lines changed: 4 additions & 1 deletion
File tree
- operator-framework/src/test/java/io/javaoperatorsdk/operator/workflow/workflowallfeature
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
| |||
80 | 82 | | |
81 | 83 | | |
82 | 84 | | |
| 85 | + | |
83 | 86 | | |
84 | 87 | | |
85 | 88 | | |
| |||
0 commit comments