Skip to content

Commit

Permalink
Added deprecated note
Browse files Browse the repository at this point in the history
Signed-off-by: AbstractionFactory <[email protected]>
  • Loading branch information
abstractionfactory committed Jan 22, 2025
1 parent 2e11b56 commit 5cc5308
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions testcontext/context_1.24.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ package testcontext
// Context creates a context with a deadline that allows for enough time to clean up a test before the testing framework
// unceremoniously kills the process. Starting with Go 1.24, this function is an alias for t.Context(). In Go 1.23 and
// lower this function reserves 25% of the test timeout, minimum 1 minute, maximum 5 minutes for cleanup.
//
// Deprecated: Consider using t.Context() instead.
func Context(t *testing.T) context.Context {
return t.Context()
}

0 comments on commit 5cc5308

Please sign in to comment.