Skip to content

Simplify pgconn tests by using T.TempDir#2194

Merged
jackc merged 1 commit intojackc:masterfrom
alexandear:refactor/pgconn-tests
Dec 17, 2024
Merged

Simplify pgconn tests by using T.TempDir#2194
jackc merged 1 commit intojackc:masterfrom
alexandear:refactor/pgconn-tests

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
@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