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

test: prefer fs.MapFS to os.File #136

Merged
merged 1 commit into from
Oct 15, 2022
Merged

test: prefer fs.MapFS to os.File #136

merged 1 commit into from
Oct 15, 2022

Conversation

tmzane
Copy link
Collaborator

@tmzane tmzane commented Oct 14, 2022

This change utilize Loader's ability to read from any fs.FS: we can use the in-memory implementation to minimize interacting with OS.

We could also use t.Setenv instead of os.Setenv but this would require bumping Go version to 1.17

Copy link
Member

@cristaloleg cristaloleg left a comment

Choose a reason for hiding this comment

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

WOW, I didn't know that we have this package, nice!

@cristaloleg cristaloleg merged commit 7672f5b into cristalhq:main Oct 15, 2022
@tmzane tmzane deleted the use-fs-map-in-tests branch October 15, 2022 10:36
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.

None yet

2 participants