From 47f12e63deb0b24712c0e4c2beef333947cd7887 Mon Sep 17 00:00:00 2001
From: Fraser Waters <fraser@pulumi.com>
Date: Fri, 21 Feb 2025 12:05:26 +0000
Subject: [PATCH] lint

---
 command_test.go | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/command_test.go b/command_test.go
index 175f2ffd..165826d1 100644
--- a/command_test.go
+++ b/command_test.go
@@ -2926,7 +2926,8 @@ func TestHelpFuncExecuted(t *testing.T) {
 	helpText := "Long description"
 
 	// Create a context that will be unique, not just the background context
-	executionCtx, _ := context.WithCancel(context.Background())
+	executionCtx, cancel := context.WithCancel(context.Background())
+	defer cancel()
 
 	child := &Command{Use: "child", Run: emptyRun}
 	child.SetHelpFunc(func(cmd *Command, args []string) {