chore(testutil): extract testutil.CreateZip and testutil.CreateTar helpers (#15540)

Extracts `testutil.CreateTar` and `testutil.CreateZip` test helpers.
This commit is contained in:
Cian Johnston
2024-11-18 09:17:04 +00:00
committed by GitHub
parent f9d6698384
commit 4719d2406f
6 changed files with 89 additions and 116 deletions

View File

@ -34,7 +34,7 @@ func TestTimingsFromProvision(t *testing.T) {
binaryPath: fakeBin,
})
sess := configure(ctx, t, api, &proto.Config{
TemplateSourceArchive: makeTar(t, nil),
TemplateSourceArchive: testutil.CreateTar(t, nil),
})
ctx, cancel := context.WithTimeout(ctx, testutil.WaitLong)