Skip to content
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

tests: removing of dlvbin is not needed #3875

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

alexandear
Copy link
Contributor

@alexandear alexandear commented Dec 9, 2024

This PR removes useless os.Remove(dlvbin) in tests.

protest.GetDlvBinary calls getDlvBinInternal which creates dlv.exe inside the temporary directory from t.TempDir(). And T.TempDir function automatically removes the returned directory.

Copy link
Member

@aarzilli aarzilli left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@derekparker derekparker left a comment

Choose a reason for hiding this comment

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

LGTM

@derekparker derekparker merged commit 84c99e5 into go-delve:master Dec 9, 2024
2 checks passed
@alexandear alexandear deleted the tests-useless-os-remove branch December 9, 2024 17:56
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.

3 participants