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: refactor Tmpdir as a test helper #4093

Merged
merged 1 commit into from
Aug 3, 2023
Merged

Conversation

jedevc
Copy link
Member

@jedevc jedevc commented Aug 2, 2023

Errors from Tmpdir are always passed as an argument to require.NoError, so we can instead move this error check to inside the helper, to avoid a few extra lines in tests that call it.

Related: docker/buildx@d03e93f

Errors from Tmpdir are always passed as an argument to require.NoError,
so we can instead move this error check to inside the helper, to avoid a
few extra lines in tests that call it.

Signed-off-by: Justin Chadwell <me@jedevc.com>
@jedevc jedevc requested review from tonistiigi and crazy-max August 2, 2023 15:24
@jedevc jedevc merged commit 659fba6 into moby:master Aug 3, 2023
@jedevc jedevc deleted the tempdir-errors branch August 3, 2023 09:32
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