Skip to content

Commit baefe5a

Browse files
kolyshkingopherbot
authored andcommitted
internal/mcp: use t.Context in test
Generated by modernize -fix -test -category=testingcontext ./... Change-Id: I63e554464ebb8fb2788bed06cb690a988a039d90 Reviewed-on: https://go-review.googlesource.com/c/tools/+/703077 Reviewed-by: Mark Freeman <[email protected]> Auto-Submit: Alan Donovan <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Alan Donovan <[email protected]> Auto-Submit: Kirill Kolyshkin <[email protected]>
1 parent cce04c1 commit baefe5a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/mcp/cmd_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ func TestCmdTransport(t *testing.T) {
4747
t.Skip("unsupported OS")
4848
}
4949

50-
ctx, cancel := context.WithCancel(context.Background())
51-
defer cancel()
50+
ctx := t.Context()
5251

5352
exe, err := os.Executable()
5453
if err != nil {

0 commit comments

Comments
 (0)