Skip to content

Commit 7406af4

Browse files
committed
fix test flakyness maybe
1 parent 48cba00 commit 7406af4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/hyle-net/src/tcp/p2p_server.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,7 +1073,7 @@ pub mod tests {
10731073
// Process the waiting job.
10741074
p2p_server1.listen_next().await;
10751075

1076-
tokio::time::sleep(Duration::from_millis(200)).await;
1076+
tokio::time::sleep(Duration::from_millis(300)).await;
10771077

10781078
let evt = receive_event(&mut p2p_server2, "Should be a TestMessage event").await?;
10791079

@@ -1100,7 +1100,7 @@ pub mod tests {
11001100
// Process the waiting job.
11011101
p2p_server1.listen_next().await;
11021102

1103-
tokio::time::sleep(Duration::from_millis(200)).await;
1103+
tokio::time::sleep(Duration::from_millis(300)).await;
11041104

11051105
let evt = receive_event(&mut p2p_server2, "Should be a TestMessage event").await?;
11061106

@@ -1127,7 +1127,7 @@ pub mod tests {
11271127
// Process the waiting job.
11281128
p2p_server2.listen_next().await;
11291129

1130-
tokio::time::sleep(Duration::from_millis(200)).await;
1130+
tokio::time::sleep(Duration::from_millis(300)).await;
11311131

11321132
let evt = receive_event(&mut p2p_server1, "Should be a TestMessage event").await?;
11331133

@@ -1154,7 +1154,7 @@ pub mod tests {
11541154
// Process the waiting job.
11551155
p2p_server2.listen_next().await;
11561156

1157-
tokio::time::sleep(Duration::from_millis(200)).await;
1157+
tokio::time::sleep(Duration::from_millis(300)).await;
11581158

11591159
let evt = receive_event(&mut p2p_server1, "Should be a TestMessage event").await?;
11601160

0 commit comments

Comments
 (0)