Files
iroh/iroh-cli
Divma f085e633c8 test(iroh-cli): reduce flakyness of cli_provide_file_resume (#2563)
## Description

In windows there is no way to copy a file being accessed by another
process in an accessible way. This is what makes this test fail since it
attempt to copy the blobs.db folder a couple of times while the iroh
instance that handles is running.

The change is simple: shutdown the provider, copy the files, re-start
the provider. From my perspective, this does not affect what the test is
attempting to assert.

Now, since this includes re-starting the iroh instance that provides the
files several times, and we match on output, sometimes we can get weird
logs related to shutdown. One of those (and the only one I have seen so
far) is for a netcheck report and didn't finish on time. Instead of
logging this in the reportgen actor, the error is bubbled up to be
handled by the netcheck actor (which will have shutdown by then) thus
reducing noise and allowing for better error handling in the future

## Breaking Changes

n/a

## Notes & open questions

n/a

## 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-29 19:21:53 +00:00
..

iroh-cli

The CLI for iroh.

License

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.