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

fix(Tests): Remove proof images on test tearDown #529

Merged
merged 1 commit into from
Oct 19, 2024

Conversation

raphodn
Copy link
Member

@raphodn raphodn commented Oct 19, 2024

What

Currently the folder img/0001 keeps adding new images when running the tests (Proof API upload tests), but there is no mechanism to delete them.

"Hack" to fix this

@raphodn raphodn merged commit 5805eea into main Oct 19, 2024
10 checks passed
@raphodn raphodn deleted the raphodn/proof-test-image-delete branch October 19, 2024 09:10
@raphodn
Copy link
Member Author

raphodn commented Oct 19, 2024

actually it only fixes on "success" tests (where the Proof is actually created).
does not work on 40X tests

Better solution would be to refactor the image path build (when uploading), and easily navigate in it to delete any images on tearDown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

1 participant