Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Improve temporary file management in gopherjs test. #1081

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 30, 2021

Conversation

nevkontakte
Copy link
Member

  • Include Go package name in the temp file name.
  • Close file handle to the temp file early, since we are not actually
    using it.
  • Clean the temporary file up after test execution finished to reduce
    the clutter in the current directory.

I was also going to move temporary files into the OS's temp directory,
but it turns out using current directory is deliberate:
#303.

  - Include Go package name in the temp file name.
  - Close file handle to the temp file early, since we are not actually
    using it.
  - Clean the temporary file up after test execution finished to reduce
    the clutter in the current directory.

I was also going to move temporary files into the OS's temp directory,
but it turns out using current directory is deliberate:
gopherjs#303.
@nevkontakte nevkontakte requested a review from flimzy October 30, 2021 14:52
@nevkontakte nevkontakte enabled auto-merge October 30, 2021 14:52
@nevkontakte nevkontakte merged commit e8a8f89 into gopherjs:master Oct 30, 2021
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