Skip to content

Commit 4da57bd

Browse files
committed
test(ping): increase client response timeouts for integration
1 parent 4094f82 commit 4da57bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/freenet-ping/app/src/ping_client.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub async fn wait_for_put_response(
4747
expected_key: &ContractKey,
4848
) -> Result<ContractKey, Box<dyn std::error::Error + Send + Sync + 'static>> {
4949
loop {
50-
let resp = timeout(Duration::from_secs(30), client.recv()).await;
50+
let resp = timeout(Duration::from_secs(60), client.recv()).await;
5151
match resp {
5252
Ok(Ok(HostResponse::ContractResponse(ContractResponse::PutResponse { key }))) => {
5353
if &key == expected_key {
@@ -91,7 +91,7 @@ pub async fn wait_for_get_response(
9191
expected_key: &ContractKey,
9292
) -> Result<Ping, Box<dyn std::error::Error + Send + Sync + 'static>> {
9393
loop {
94-
let resp = timeout(Duration::from_secs(30), client.recv()).await;
94+
let resp = timeout(Duration::from_secs(60), client.recv()).await;
9595
match resp {
9696
Ok(Ok(HostResponse::ContractResponse(ContractResponse::GetResponse {
9797
key,
@@ -134,7 +134,7 @@ pub async fn wait_for_subscribe_response(
134134
expected_key: &ContractKey,
135135
) -> Result<(), Box<dyn std::error::Error + Send + Sync + 'static>> {
136136
loop {
137-
let resp = timeout(Duration::from_secs(30), client.recv()).await;
137+
let resp = timeout(Duration::from_secs(60), client.recv()).await;
138138
match resp {
139139
Ok(Ok(HostResponse::ContractResponse(ContractResponse::SubscribeResponse {
140140
key,

0 commit comments

Comments
 (0)