Skip to content

Commit b1a26da

Browse files
committed
Assume /src/pkg/compose/testdata absolute workingdir to make tests reproducible
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent 0ab21a2 commit b1a26da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/compose/kill_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func testContainer(service string, id string, oneOff bool) moby.Container {
114114
}
115115

116116
func containerLabels(service string, oneOff bool) map[string]string {
117-
workingdir, _ := filepath.Abs("testdata")
117+
workingdir := "/src/pkg/compose/testdata"
118118
composefile := filepath.Join(workingdir, "compose.yaml")
119119
labels := map[string]string{
120120
compose.ServiceLabel: service,

0 commit comments

Comments
 (0)