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

Simplify pgconn tests by using T.TempDir #2194

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

alexandear
Copy link
Contributor

The PR simplifies TestConnCopyFromGzipReader by using T.TempDir inside os.CreateTemp. TempDir returns a temporary directory which is automatically removed.

Similar to #2014.

@jackc jackc merged commit ad87d47 into jackc:master Dec 17, 2024
14 checks passed
@jackc
Copy link
Owner

jackc commented Dec 17, 2024

Thanks

@alexandear alexandear deleted the refactor/pgconn-tests branch December 17, 2024 23:50
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