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-temp-directory should always return the same value #149

Open
cgay opened this issue Feb 26, 2022 · 1 comment
Open

test-temp-directory should always return the same value #149

cgay opened this issue Feb 26, 2022 · 1 comment

Comments

@cgay
Copy link
Member

cgay commented Feb 26, 2022

Currently test-temp-directory creates and returns a different directory each time it's called, if not called in the same second. At least within the same test body it should always return the same value.

Also, there really should be only one dated directory per test run and then subdirectories for the tests, to avoid directory proliferation. I think we mostly get away with this now because (a) I'm the only one using this function and (b) most of my test suites have very short run time.

@cgay
Copy link
Member Author

cgay commented Feb 26, 2022

I meant to mention the obvious work-around is let test-dir = test-temp-directory(); so this is low priority.

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

No branches or pull requests

1 participant