Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit ff08642

Browse files
committed
labels use absolute paths
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent 79573e1 commit ff08642

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

local/compose/kill_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package compose
1818

1919
import (
2020
"context"
21+
"path/filepath"
2122
"testing"
2223

2324
"github.com/docker/docker/api/types/filters"
@@ -83,7 +84,9 @@ func testContainer(service string, id string) apitypes.Container {
8384
}
8485

8586
func containerLabels(service string) map[string]string {
86-
return map[string]string{serviceLabel: service, configFilesLabel: "docker-compose.yml", workingDirLabel: "testdata", projectLabel: testProject}
87+
workingdir, _ := filepath.Abs("testdata")
88+
composefile := filepath.Join(workingdir, "docker-compose.yml")
89+
return map[string]string{serviceLabel: service, configFilesLabel: composefile, workingDirLabel: workingdir, projectLabel: testProject}
8790
}
8891

8992
func anyCancellableContext() gomock.Matcher {

0 commit comments

Comments
 (0)