Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
hansieodendaal committed Jan 28, 2025
1 parent 66f6015 commit 17a6d70
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion base_layer/core/tests/tests/node_state_machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ async fn test_listening_initial_fallen_behind() {

#[tokio::test]
async fn test_event_channel() {
// env_logger::init(); // Set `$env:RUST_LOG = "trace"`
let temp_dir = tempdir().unwrap();
let (node, consensus_manager) = BaseNodeBuilder::new(Network::Esmeralda.into())
.start(temp_dir.path().to_str().unwrap(), BlockchainDatabaseConfig::default())
Expand Down Expand Up @@ -314,7 +315,7 @@ async fn test_event_channel() {
.unwrap();

let peer_chain_metadata = PeerChainMetadata::new(node_identity.node_id().clone(), metadata, None);
for _ in 0..5 {
for _ in 0..10 {
mock.publish_chain_metadata(
peer_chain_metadata.node_id(),
peer_chain_metadata.claimed_chain_metadata(),
Expand Down

0 comments on commit 17a6d70

Please sign in to comment.