Commit 4f431d2
committed
test(alluxio): strengthen reconcile assertion to err+RequeueAfter checks
When Dataset is absent, ReconcileInternal reaches the 'no dataset bound'
branch which returns RequeueAfterInterval(5s) with nil error. Replace the
weak panic-safety check with precise assertions:
Expect(err).ToNot(HaveOccurred())
Expect(result.RequeueAfter).ToNot(BeZero())
Note: Gemini's suggestion used result.Requeue which would be wrong here;
RequeueAfterInterval sets RequeueAfter, not Requeue.
Signed-off-by: Harsh <harshmastic@gmail.com>1 parent b400fcc commit 4f431d2
1 file changed
Lines changed: 5 additions & 5 deletions
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
0 commit comments