From d86b64bd2f79a0c6022f6c2e9c2344c24ac43719 Mon Sep 17 00:00:00 2001 From: Nurlan Moldomurov Date: Fri, 21 Jul 2023 11:37:42 +0300 Subject: [PATCH] PMM-12078 Fix tests and linters. --- managed/cmd/pmm-managed-starlark/main_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/managed/cmd/pmm-managed-starlark/main_test.go b/managed/cmd/pmm-managed-starlark/main_test.go index fcabbb8f0a..72e23b788c 100644 --- a/managed/cmd/pmm-managed-starlark/main_test.go +++ b/managed/cmd/pmm-managed-starlark/main_test.go @@ -105,7 +105,8 @@ func TestStarlarkSandbox(t *testing.T) { //nolint:tparallel }, } - ctx, _ := context.WithTimeout(context.Background(), 120*time.Second) + ctx, cancel := context.WithTimeout(context.Background(), 120*time.Second) + t.Cleanup(cancel) // since we run the binary as a child process to test it we need to build it first. command := exec.CommandContext(ctx, "make", "-C", "../..", "release") command.Stdout = os.Stdout