1
0
Эх сурвалжийг харах

Assume /src/pkg/compose/testdata absolute workingdir to make tests reproducible

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 1 жил өмнө
parent
commit
b1a26dac1d

+ 1 - 1
pkg/compose/kill_test.go

@@ -114,7 +114,7 @@ func testContainer(service string, id string, oneOff bool) moby.Container {
 }
 
 func containerLabels(service string, oneOff bool) map[string]string {
-	workingdir, _ := filepath.Abs("testdata")
+	workingdir := "/src/pkg/compose/testdata"
 	composefile := filepath.Join(workingdir, "compose.yaml")
 	labels := map[string]string{
 		compose.ServiceLabel:     service,