Skip to content

Commit 170711f

Browse files
committed
fix: remove unnecessary call to delete tmp directory
1 parent a887bc6 commit 170711f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

build_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,6 @@ func TestBuildFiles(t *testing.T) {
332332
t.Parallel()
333333
fixture := fixture
334334
tmpdir := t.TempDir()
335-
defer os.RemoveAll(tmpdir)
336335

337336
if err := BuildFiles(fixture.payload, tmpdir, &fixture.options); err != nil {
338337
t.Fatal(err)
@@ -371,7 +370,6 @@ func TestCompareParsedAndBuilt(t *testing.T) {
371370
t.Run(fixture.name, func(t *testing.T) {
372371
t.Parallel()
373372
tmpdir := t.TempDir()
374-
defer os.RemoveAll(tmpdir)
375373

376374
origPayload, err2 := Parse(getTestConfigPath(fixture.name, "nginx.conf"), &fixture.options)
377375
if err2 != nil {

0 commit comments

Comments
 (0)