-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(iroh-cli): make cli resumption tests not flaky (#2564)
## 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.~~
- Loading branch information
1 parent
7fdd6cb
commit 9e6b1e0
Showing
1 changed file
with
98 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters