Skip to content

Commit

Permalink
PMM-12078 Fix tests and linters.
Browse files Browse the repository at this point in the history
  • Loading branch information
BupycHuk committed Jul 21, 2023
1 parent 0aa45ff commit d86b64b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion managed/cmd/pmm-managed-starlark/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d86b64b

Please sign in to comment.