kubernetes/test/utils/ktesting/internal
Patrick Ohly 4e91c01236 ktesting: support Init inside synctest bubble
Deadline is available inside a synctest bubble, but calling it panics. To
support constructing a TContext inside a bubble, we have to catch the panic
because there is no API to detect a bubble in advance. Detecting a panic is
then also used to set the result of TContext.IsSyncTest.

While at it, cleaning up the code a bit and adding unit tests for the Deadline
behavior.
2026-04-02 14:25:05 +02:00
..
synctestinit ktesting: support Init inside synctest bubble 2026-04-02 14:25:05 +02:00
config.go