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

refactor: use t.TempDir() instead of os.MkdirTemp #629

Merged
merged 1 commit into from
Mar 24, 2025

Conversation

yuhangcangqian
Copy link
Contributor

TempDir returns a temporary directory for the test to use.The directory is automatically removed when the test and
all its subtests complete. More info https://pkg.go.dev/testing#B.TempDir

Copy link
Contributor

@faddat faddat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems to break the tests in the folder.

@yuhangcangqian
Copy link
Contributor Author

this seems to break the tests in the folder.

Sorry for my mistake. Modified.

@yuhangcangqian
Copy link
Contributor Author

All CI passed. Please review again.

Copy link
Collaborator

@chipshort chipshort left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@chipshort chipshort merged commit 6c7a563 into CosmWasm:main Mar 24, 2025
14 of 15 checks passed
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.

3 participants