فهرست منبع

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

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 1 سال پیش
والد
کامیت
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,