From 5cc53081fbb8a3e6dbc050538feb10c0204283f9 Mon Sep 17 00:00:00 2001 From: AbstractionFactory <179820029+abstractionfactory@users.noreply.github.com> Date: Wed, 22 Jan 2025 12:33:06 +0100 Subject: [PATCH] Added deprecated note Signed-off-by: AbstractionFactory <179820029+abstractionfactory@users.noreply.github.com> --- testcontext/context_1.24.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testcontext/context_1.24.go b/testcontext/context_1.24.go index e33bbb4..8b6e6dd 100644 --- a/testcontext/context_1.24.go +++ b/testcontext/context_1.24.go @@ -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() }