You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test: use t.Context() instead of context.Background() (#3525)
Replace context.Background() and context.TODO() with the
testing context t.Context() (available since Go 1.24) across
all test files. This ties context lifecycle to the test
lifecycle, providing automatic cancellation when tests end.
Cleanup functions (t.Cleanup) retain context.Background()
since t.Context() is cancelled before cleanup runs.
Unused "context" imports are removed where applicable.
Signed-off-by: Matej Vašek <matejvasek@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments