Skip to content

Update unit tests to use new test Context #3157

Open
@sjberman

Description

@sjberman

As of Go 1.24, the testing package provides a t.Context method that creates a context that is canceled once a test completes.

https://tip.golang.org/doc/go1.24#testingpkgtesting

Acceptance

  • update unit tests to use new testing.Context instead of the various context.TODO and context.Background, etc, that we currently use

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogCurrently unprioritized work. May change with user feedback or as the product progresses.good first issueGood for newcomerstech-debtShort-term pain, long-term benefittestsPull requests that update tests

    Type

    No type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions