nginx-gateway-fabric icon indicating copy to clipboard operation
nginx-gateway-fabric copied to clipboard

Update unit tests to use new test Context

Open sjberman opened this issue 9 months ago • 0 comments
trafficstars

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

sjberman avatar Feb 21 '25 14:02 sjberman