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

chore(tests): use t.TempDir #1677

Merged
merged 1 commit into from
Mar 25, 2024
Merged

chore(tests): use t.TempDir #1677

merged 1 commit into from
Mar 25, 2024

Conversation

hiddeco
Copy link
Contributor

@hiddeco hiddeco commented Mar 25, 2024

This ensures the clean up of temporary directories, even in case of test failures, is guaranteed. Which is not the case with defer calls.

Copy link

netlify bot commented Mar 25, 2024

Deploy Preview for docs-kargo-akuity-io canceled.

Name Link
🔨 Latest commit b883f2d
🔍 Latest deploy log https://app.netlify.com/sites/docs-kargo-akuity-io/deploys/660189270bc0c40008ef61af

This ensures the clean up of temporary directories, even in case of test
failures, is guaranteed. Which is not the case with `defer` calls.

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
Copy link

codecov bot commented Mar 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 44.10%. Comparing base (b42fa1a) to head (9f095cc).
Report is 1 commits behind head on main.

❗ Current head 9f095cc differs from pull request most recent head b883f2d. Consider uploading reports for the commit b883f2d to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1677   +/-   ##
=======================================
  Coverage   44.10%   44.10%           
=======================================
  Files         202      202           
  Lines       13043    13043           
=======================================
  Hits         5753     5753           
  Misses       7045     7045           
  Partials      245      245           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@krancour krancour added this to the v0.5.0 milestone Mar 25, 2024
@hiddeco hiddeco added this pull request to the merge queue Mar 25, 2024
Merged via the queue into akuity:main with commit 76d6813 Mar 25, 2024
14 checks passed
@hiddeco hiddeco deleted the fix-tmpdir-tests branch March 25, 2024 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants