From b1a26dac1d3dc201d0d026cc16cb9baadaacffd7 Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Tue, 21 Nov 2023 15:16:40 +0100 Subject: [PATCH] Assume /src/pkg/compose/testdata absolute workingdir to make tests reproducible Signed-off-by: Nicolas De Loof --- pkg/compose/kill_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/compose/kill_test.go b/pkg/compose/kill_test.go index 8705c1b9..2ad0d212 100644 --- a/pkg/compose/kill_test.go +++ b/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,