Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 32b1bf2

Browse files
committed
Fix TestPack
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 200ff3a commit 32b1bf2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

e2e/commands_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,14 +193,14 @@ func TestPack(t *testing.T) {
193193
Command: []string{dockerApp, "helm", "test"},
194194
Dir: tempDir,
195195
}).Assert(t, icmd.Success)
196-
_, err = os.Stat("test.chart/Chart.yaml")
196+
_, err = os.Stat(filepath.Join(tempDir, "test.chart", "Chart.yaml"))
197197
assert.NilError(t, err)
198-
assert.NilError(t, os.Mkdir("output", 0755))
198+
assert.NilError(t, os.Mkdir(filepath.Join(tempDir, "output"), 0755))
199199
icmd.RunCmd(icmd.Cmd{
200200
Command: []string{dockerApp, "unpack", "test", "-o", "output"},
201201
Dir: tempDir,
202202
}).Assert(t, icmd.Success)
203-
_, err = os.Stat("output/test.dockerapp/docker-compose.yml")
203+
_, err = os.Stat(filepath.Join(tempDir, "output", "test.dockerapp", "docker-compose.yml"))
204204
assert.NilError(t, err)
205205
}
206206

0 commit comments

Comments
 (0)