Commit f24bf03
committed
Use t.Error instead of t.Fatal for assertion checking
The tests will fail if there are any discrepancies between the expected
cluster state and the observed state. Using t.Fataf() or t.Fatal marks
the test as failed, which is what we want, but it also stop execution of
the test. Since we have some helper methods that process the mismatched
results to generate assertion files and reports, we don't want to
completely stop execution so that we can still produce those files.
This commit updates those specific parts of the tests to use Error
instead of Fatal so we perserve the behavior to mark the test as failed,
but continue processing in the test to cleanup and generate reports.1 parent def3a79 commit f24bf03
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
| 285 | + | |
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
| 355 | + | |
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
| |||
477 | 477 | | |
478 | 478 | | |
479 | 479 | | |
480 | | - | |
| 480 | + | |
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
| |||
0 commit comments