Skip to content

Commit 3b23220

Browse files
authored
tests(iroh-net): expose run_relay_server and option to skip cert verification to tests (#2145)
## Description * Add a `test-utils` feature to `iroh-net`. If enabled, expose the `test_utils` crate with `fn run_relay_server` publicly. * Add option to `iroh_net::MagicEndpointBuilder` to skip relay server SSL certificate verification. The option is behind a `#[cfg(any(test, feature = "test-utils"))]` * Add the same option to `iroh::NodeBuilder`, behind the same `cfg` option * Add a test to `iroh` which uses `run_relay_server` and then downloads a blob by connecting to a node with only node id and relay URL (no direct addresses) ## Change checklist - [x] Self-review. - [x] Documentation updates if relevant. - [x] Tests if relevant.
1 parent 73eda46 commit 3b23220

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)