Philipp Krüger d17ffa3e2e test(iroh-cli): Improve bao_store_migration test logging (#2483)
## Description

We didn't get good logs on the `cli_bao_store_migration` test so far.
Here's what it's output was in a failure case:
```
--- STDOUT:              iroh-cli::cli cli_bao_store_migration ---

running 1 test
|Iroh is running
|Node ID: cnzuojj4sbo2ulpqoo2riyrdsn2j4pnp3b5bgrjubsft72nutlca
iroh started up.
test cli_bao_store_migration ... FAILED

failures:

failures:
    cli_bao_store_migration

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 12 filtered out; finished in 2.71s


--- STDERR:              iroh-cli::cli cli_bao_store_migration ---
thread 'cli_bao_store_migration' panicked at iroh-cli/tests/cli.rs:394:5:
assertion `left == right` failed
  left: ""
 right: "4yny3v7anmzzsajv2amm3nxpqd2owfw4dqnjwq6anv7nj2djmt2q (0 B)\n"
 ```
 
 This was only capturing stdout from one of the four iroh commands.
 
 This PR changes that. Now stdout and stderr are captured by all iroh commands in the `cli_bao_store_migration` test.

## Breaking Changes

None

## Notes & open questions

I've also switched `PathBuf::to_string_lossy()` calls to be `PathBuf::display()` calls.

## 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.~~
- ~~[ ] Tests if relevant.~~
- ~~[ ] All breaking changes documented.~~
2024-07-16 12:47:58 +00:00
2024-07-09 14:41:03 +02:00
2024-07-09 14:41:03 +02:00
2024-07-09 14:41:03 +02:00
2024-07-09 14:41:03 +02:00
2024-07-09 14:41:03 +02:00
2024-04-29 10:08:12 +00:00
2024-01-23 14:36:54 +00:00
2024-07-09 14:41:03 +02:00
2023-11-08 11:47:24 +01:00
2024-01-23 14:36:54 +00:00
2024-07-08 10:30:18 +00:00

iroh

A toolkit for building distributed applications

Documentation Crates.io downloads Chat Youtube License: MIT License: Apache 2.0 CI


Features

  • Documents - Authors create and join documents: mutable key-value stores that multiple users read from, write to, and sync with, subscribing to live updates in real time.
  • Blobs - Iroh works with content-addressed blobs of opaque data, which are often the bytes of a file.
  • Networking - At the core of iroh is the ability to connect any two devices, no matter where they are.

Overview

Iroh is a protocol for syncing & moving bytes. Bytes of any size, on any device. At its core, it's a peer-2-peer network built on a magic socket that establishes QUIC connections between peers. Peers request and provide blobs of opaque bytes that are incrementally verified by their BLAKE3 hash during transfer.

Getting Started

Iroh is delivered as a Rust library and a CLI.

Library

Run cargo add iroh, to add iroh to your project.

CLI

Check out https://iroh.computer/docs/install to get started.

The implementation lives in the iroh-cli crate.

License

Copyright 2024 N0, INC.

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.

S
Description
IP addresses break, dial keys instead. A library that adds QUIC + NAT Traversal to your apps.
Readme
435 MiB
Languages
Rust 99.6%
Shell 0.3%