Commit e840e07
Bug: IsMicroShiftCluster: log timeout instead of calling Skip from container node
IsMicroShiftCluster() calls skipper.Skip() when the API poll times out.
When called from a Ginkgo container node context (e.g. InitializeTestFramework
during suite setup), Ginkgo v2 panics because Skip() is only valid inside
leaf nodes. This crashes the test binary and cascades all remaining tests
as failures.
Replace the Skip() call with a log message and let the function fall
through returning (false, nil). This allows framework initialization to
succeed even when the API is unavailable, so that each test's own
BeforeEach health checks (e.g. SkipIfClusterIsNotHealthy) can properly
skip the test instead of the binary crashing.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent ffec556 commit e840e07
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2341 | 2341 | | |
2342 | 2342 | | |
2343 | 2343 | | |
2344 | | - | |
2345 | | - | |
| 2344 | + | |
2346 | 2345 | | |
2347 | 2346 | | |
2348 | 2347 | | |
| |||
0 commit comments