mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-05-14 01:49:27 -04:00
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. |
||
|---|---|---|
| .. | ||
| synctestinit | ||
| config.go | ||