Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
153 changes: 142 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions apps/freenet-ping/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions apps/freenet-ping/app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ edition = "2021"

[features]
testing = ["freenet-stdlib/testing", "freenet/testing"]
manual-tests = []

[dependencies]
anyhow = "1.0"
Expand Down
6 changes: 3 additions & 3 deletions apps/freenet-ping/app/src/ping_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pub async fn wait_for_put_response(
expected_key: &ContractKey,
) -> Result<ContractKey, Box<dyn std::error::Error + Send + Sync + 'static>> {
loop {
let resp = timeout(Duration::from_secs(30), client.recv()).await;
let resp = timeout(Duration::from_secs(60), client.recv()).await;
match resp {
Ok(Ok(HostResponse::ContractResponse(ContractResponse::PutResponse { key }))) => {
if &key == expected_key {
Expand Down Expand Up @@ -91,7 +91,7 @@ pub async fn wait_for_get_response(
expected_key: &ContractKey,
) -> Result<Ping, Box<dyn std::error::Error + Send + Sync + 'static>> {
loop {
let resp = timeout(Duration::from_secs(30), client.recv()).await;
let resp = timeout(Duration::from_secs(60), client.recv()).await;
match resp {
Ok(Ok(HostResponse::ContractResponse(ContractResponse::GetResponse {
key,
Expand Down Expand Up @@ -134,7 +134,7 @@ pub async fn wait_for_subscribe_response(
expected_key: &ContractKey,
) -> Result<(), Box<dyn std::error::Error + Send + Sync + 'static>> {
loop {
let resp = timeout(Duration::from_secs(30), client.recv()).await;
let resp = timeout(Duration::from_secs(60), client.recv()).await;
match resp {
Ok(Ok(HostResponse::ContractResponse(ContractResponse::SubscribeResponse {
key,
Expand Down
4 changes: 2 additions & 2 deletions apps/freenet-ping/app/tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ Run a specific blocked peers test variant:
cargo test test_ping_blocked_peers_simple
```

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

```bash
cargo test -p freenet-ping-app --test run_app_partially_connected_network
cargo test -p freenet-ping-app --features manual-tests --test run_app test_ping_partially_connected_network
```

---
Loading
Loading