Skip to content

Commit 98e2b39

Browse files
committed
test(ping): gate partial network scenario
1 parent 607afe8 commit 98e2b39

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

apps/freenet-ping/app/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ edition = "2021"
55

66
[features]
77
testing = ["freenet-stdlib/testing", "freenet/testing"]
8+
manual-tests = []
89

910
[dependencies]
1011
anyhow = "1.0"

apps/freenet-ping/app/tests/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ Run a specific blocked peers test variant:
8888
cargo test test_ping_blocked_peers_simple
8989
```
9090

91-
Run the large-scale partial connectivity network test:
91+
Run the large-scale partial connectivity network test (requires the manual test feature because the scenario is still experimental):
9292

9393
```bash
94-
cargo test -p freenet-ping-app --test run_app_partially_connected_network
94+
cargo test -p freenet-ping-app --features manual-tests --test run_app test_ping_partially_connected_network
9595
```
9696

9797
---

apps/freenet-ping/app/tests/run_app.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,6 +1519,7 @@ async fn test_ping_application_loop() -> TestResult {
15191519
Ok(())
15201520
}
15211521

1522+
#[cfg(feature = "manual-tests")]
15221523
#[tokio::test(flavor = "multi_thread")]
15231524
async fn test_ping_partially_connected_network() -> TestResult {
15241525
/*

0 commit comments

Comments
 (0)