From d621c53cc1ad96adb36612e6143691dd0c79362b Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 28 Sep 2026 12:27:34 +0900 Subject: pkg: archive extract helper This exposes the behaviour of curing an archiveArtifact without requiring a cache. This can be handy and avoids lots of duplicate code. Signed-off-by: Ophestra --- pkg/tar_test.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'pkg/tar_test.go') diff --git a/pkg/tar_test.go b/pkg/tar_test.go index 58ec3aed..e8a42f73 100644 --- a/pkg/tar_test.go +++ b/pkg/tar_test.go @@ -249,10 +249,5 @@ func checkTarHTTP( }), nil, nil, pkg.WNew, errors.Join(stub.UniqueError(0xcafe))}, }) - fault := base.Append("fault") - if err := os.RemoveAll(fault.String()); err != nil { - t.Fatal(err) - } else if err = os.Mkdir(fault.String(), 0); err != nil { - t.Fatal(err) - } + dropFaults(t, base) } -- cgit v1.3.1