Commit b400fcc
committed
test(alluxio): replace brittle error-string check with panic-safety assertion
The previous assertion used ContainSubstring("not found") negatively inside
an if-err check. ReconcileInternal can return "not found" on missing Dataset
or other dependencies, which would cause a spurious test failure. Replace with
a panic-safety check which is the only reliable assertion in a unit-test
context where ReconcileInternal runs without a full control plane.1 parent 3860105 commit b400fcc
1 file changed
Lines changed: 5 additions & 9 deletions
Lines changed: 5 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
116 | 112 | | |
117 | 113 | | |
118 | 114 | | |
0 commit comments