Files
iroh/iroh-cli/tests
Divma 9e6b1e0897 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.~~
2024-07-31 16:56:30 +00:00
..