Skip to content

Update to use testing.T.Context #3535

@ntnn

Description

@ntnn

In a lot of places in the tests we use the construct

ctx, cancel := context.WithCancel(context.Background())`
t.Cleanup(cancel)

This can be omitted in go1.25 and everywhere where a context is required t.Context() can be used.

/kind cleanup
/kind chore
/label "good first issue"

Metadata

Metadata

Assignees

Labels

good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.kind/choreCategorizes issue or PR as related to maintenance and other usually non-code changes.kind/cleanupCategorizes issue or PR as related to cleaning up code, process, or technical debt.

Type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions