Commit b149601
committed
test: fix flaky ManualObservedGenerationIT by guarding null status
The status assertions could throw NPE on the first Awaitility poll before
the reconciler patched the status. untilAsserted retries AssertionErrors but
rethrows other exceptions immediately, so the NPE aborted the test instead of
retrying. Guard with assertThat(status).isNotNull() to keep polling.
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>1 parent 3d48e73 commit b149601
1 file changed
Lines changed: 3 additions & 0 deletions
File tree
- operator-framework/src/test/java/io/javaoperatorsdk/operator/baseapi/manualobservedgeneration
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| 69 | + | |
| 70 | + | |
68 | 71 | | |
69 | 72 | | |
70 | 73 | | |
| |||
0 commit comments