Skip to content

Use os.RemoveAll in cleanup#2538

Merged
DrJosh9000 merged 2 commits into
mainfrom
tempfile-test-cleanup-removeall
Dec 4, 2023
Merged

Use os.RemoveAll in cleanup#2538
DrJosh9000 merged 2 commits into
mainfrom
tempfile-test-cleanup-removeall

Conversation

@DrJosh9000

Copy link
Copy Markdown
Contributor

Because the tests are parallel, using the same directory would cause flakes. So also use a different directory for each test.

@DrJosh9000
DrJosh9000 requested a review from triarius December 4, 2023 23:10

@triarius triarius left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for cleaning up (even more) after me!

Comment thread internal/tempfile/tempfile_test.go Outdated
Comment thread internal/tempfile/tempfile_test.go Outdated
DrJosh9000 and others added 2 commits December 5, 2023 10:21
Because the tests are parallel, using the same directory would cause flakes. So also use a different directory for each test.
Co-authored-by: Narthana Epa <narthana.epa@gmail.com>
@DrJosh9000
DrJosh9000 force-pushed the tempfile-test-cleanup-removeall branch from 26939c2 to aff59a2 Compare December 4, 2023 23:21
@DrJosh9000
DrJosh9000 merged commit a5de7a8 into main Dec 4, 2023
@DrJosh9000
DrJosh9000 deleted the tempfile-test-cleanup-removeall branch December 4, 2023 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants