fix(context): clean up context usage BE-12766 (#2164)

This commit is contained in:
andres-portainer
2026-04-01 18:02:48 -03:00
committed by GitHub
parent e68e14787b
commit 50056bef70
91 changed files with 558 additions and 519 deletions
@@ -1,7 +1,6 @@
package compose
import (
"context"
"errors"
"os"
"testing"
@@ -12,7 +11,6 @@ import (
)
func Test_createProject_win(t *testing.T) {
ctx := context.Background()
dir := t.TempDir()
projectName := "create-project-test"
@@ -95,7 +93,7 @@ func Test_createProject_win(t *testing.T) {
}
}()
gotProject, err := createProject(ctx, tc.configFilepaths, tc.options)
gotProject, err := createProject(t.Context(), tc.configFilepaths, tc.options)
if err != nil {
t.Fatalf("Failed to create new project: %v", err)
}