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

Skip to content

chore: Improve test cleanup #3112

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 2 commits into from
Jul 22, 2022
Merged

chore: Improve test cleanup #3112

merged 2 commits into from
Jul 22, 2022

Conversation

mafredri
Copy link
Member

This change slightly improves test cleanup and standardizes use around t.TempDir().

@mafredri mafredri self-assigned this Jul 22, 2022
@mafredri mafredri requested a review from a team July 22, 2022 11:47
@@ -132,6 +132,7 @@ func TestTemplateCreate(t *testing.T) {
ProvisionDryRun: echo.ProvisionComplete,
})
tempDir := t.TempDir()
removeTmpDirUntilSuccessAfterTest(t, tempDir)
Copy link
Member Author

Choose a reason for hiding this comment

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

This was moved up due to the nature of require (t.FailNow()).

@mafredri mafredri merged commit 7d07e67 into main Jul 22, 2022
@mafredri mafredri deleted the mafredri/use-t-tempdir-for-tests branch July 22, 2022 12:14
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