Skip to content

Commit

Permalink
enlarge test timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
nkysg committed Feb 26, 2024
1 parent fea0363 commit 578b648
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions network/tests/network_service_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ async fn test_connected_nodes() {
assert!(service2.0.is_connected(*service1.0.peer_id()).await);
}

#[stest::test]
#[stest::test(timeout = 240)]
async fn test_event_notify_receive() {
let (network1, network2) = test_helper::build_network_pair().await.unwrap();
// transaction
Expand All @@ -165,7 +165,7 @@ async fn test_event_notify_receive() {
assert_eq!(msg_send.notification, msg_receive.notification);
}

#[stest::test]
#[stest::test(timeout = 240)]
async fn test_event_notify_receive_repeat_block() {
let (network1, network2) = test_helper::build_network_pair().await.unwrap();

Expand Down Expand Up @@ -248,7 +248,7 @@ fn mock_block_info(total_difficulty: U256) -> BlockInfo {
)
}

#[stest::test]
#[stest::test(timeout = 240)]
async fn test_event_broadcast() {
let mut nodes = test_helper::build_network_cluster(3).await.unwrap();
let node3 = nodes.pop().unwrap();
Expand Down

0 comments on commit 578b648

Please sign in to comment.