nginx-gateway-fabric
nginx-gateway-fabric copied to clipboard
Update unit tests to use new test Context
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