From 3473156b22be6cc662a14b321b238ae32830b291 Mon Sep 17 00:00:00 2001 From: Fraser Waters <fraser@pulumi.com> Date: Fri, 21 Feb 2025 12:11:47 +0000 Subject: [PATCH] feedback --- command_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/command_test.go b/command_test.go index 165826d1..54d3370d 100644 --- a/command_test.go +++ b/command_test.go @@ -2926,8 +2926,7 @@ func TestHelpFuncExecuted(t *testing.T) { helpText := "Long description" // Create a context that will be unique, not just the background context - executionCtx, cancel := context.WithCancel(context.Background()) - defer cancel() + executionCtx := context.WithValue(context.Background(), "testKey", "123") child := &Command{Use: "child", Run: emptyRun} child.SetHelpFunc(func(cmd *Command, args []string) {