mirror of
https://github.com/n0-computer/iroh.git
synced 2026-12-04 08:01:34 +00:00
## Description Takes a different approach to tests by doing the setup for them all first before running the tests, to prevent windows from whining about a locked blobs.db used by the provider. This still requires an ephemeral iroh to obtain the blobs.db but does not require much re-starting, making it less prone to weird shutdown issues. ## Breaking Changes n/a ## Notes & open questions Note that there is sleep as a synchronization point because otherwise the folder for the tests will not have the correct contents. Unexpected but have seen it happen a lot. We also use a different folder for the iroh instance that actually is providing during the tests, in case shutdown is not done for the instance that produces the blobs.db, when the one that provides is started. ## Change checklist - [x] Self-review. - [ ] ~~Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant.~~ - [x] Tests if relevant. - [ ] ~~All breaking changes documented.~~