Skip to content
This repository was archived by the owner on Nov 25, 2025. It is now read-only.

Conversation

@powerslider
Copy link
Contributor

@powerslider powerslider commented Nov 19, 2025

Why this should be merged

How this works

Remove NewTestContext helper function from utilstest package and replace all usages with the standard context.WithCancel(t.Context()) pattern.

This simplifies test code by using the built-in testing.T context directly instead of wrapping it with custom timeout/deadline logic.

How this was tested

existing UT

Need to be documented?

no

Need to update RELEASES.md?

no

resolves #1412

Signed-off-by: Tsvetan Dimitrov ([email protected])

…ext pattern

Remove NewTestContext helper function from utilstest package and replace
all usages with the standard context.WithCancel(t.Context()) pattern.

This simplifies test code by using the built-in testing.T context directly
instead of wrapping it with custom timeout/deadline logic.

resolves #1412

Signed-off-by: Tsvetan Dimitrov ([email protected])
@powerslider powerslider self-assigned this Nov 19, 2025
@powerslider powerslider requested a review from a team as a code owner November 19, 2025 12:03
@ceyonur ceyonur added this pull request to the merge queue Nov 19, 2025
Merged via the queue into master with commit 1bb9fa4 Nov 19, 2025
11 checks passed
@ceyonur ceyonur deleted the powerslider/1412-t-context-integration branch November 19, 2025 12:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove utilstest.NewTestContext it favor of t.Context()

3 participants