Skip to content

tests: refactor Tmpdir as a test helper#4093

Merged
jedevc merged 1 commit intomoby:masterfrom
jedevc:tempdir-errors
Aug 3, 2023
Merged

tests: refactor Tmpdir as a test helper#4093
jedevc merged 1 commit intomoby:masterfrom
jedevc:tempdir-errors

Conversation

@jedevc
Copy link
Copy Markdown
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 crazy-max and tonistiigi 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