Преглед изворни кода

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

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof пре 2 година
родитељ
комит
b1a26dac1d
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      pkg/compose/kill_test.go

+ 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,