Skip to content

Commit

Permalink
update test_generate_block case timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
nkysg committed Apr 15, 2024
1 parent a76c9ac commit fdd686e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion network-rpc/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use starcoin_vm_types::move_resource::MoveResource;
use starcoin_vm_types::on_chain_resource::Epoch;
use std::sync::Arc;

#[stest::test]
#[stest::test(timeout = 480)]
fn test_network_rpc() {
let (handle1, net_addr_1) = {
let config_1 = NodeConfig::random_for_test();
Expand Down
2 changes: 1 addition & 1 deletion network/tests/network_node_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use std::thread;
use std::time::Duration;

// test peer shutdown and reconnect
#[stest::test]
#[stest::test(timeout = 480)]
fn test_reconnected_peers() -> anyhow::Result<()> {
let node_config1 = Arc::new(NodeConfig::random_for_test());
let node1 = test_helper::run_node_by_config(node_config1.clone())?;
Expand Down
4 changes: 2 additions & 2 deletions node/tests/test_node_run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use std::sync::Arc;
use std::thread;
use std::time::Duration;

#[stest::test]
#[stest::test(timeout = 480)]
fn test_run_node() {
let mut node_config = NodeConfig::random_for_test();
node_config.network.disable_seed = true;
Expand All @@ -22,7 +22,7 @@ fn test_run_node() {
handle.stop().unwrap()
}

#[stest::test]
#[stest::test(timeout = 480)]
fn test_generate_block() {
let mut node_config = NodeConfig::random_for_test();
node_config.network.disable_seed = true;
Expand Down

0 comments on commit fdd686e

Please sign in to comment.