Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
SWvheerden committed Nov 1, 2023
1 parent 902111a commit 086e7df
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions base_layer/core/tests/tests/node_state_machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,12 +292,14 @@ async fn test_event_channel() {
.unwrap();

let peer_chain_metadata = PeerChainMetadata::new(node_identity.node_id().clone(), metadata, None);
mock.publish_chain_metadata(
peer_chain_metadata.node_id(),
peer_chain_metadata.claimed_chain_metadata(),
)
.await
.expect("Could not publish metadata");
for _ in 0..5 {
mock.publish_chain_metadata(
peer_chain_metadata.node_id(),
peer_chain_metadata.claimed_chain_metadata(),
)
.await
.expect("Could not publish metadata");
}
let event = state_change_event_subscriber.recv().await;
assert_eq!(*event.unwrap(), StateEvent::Initialized);
let event = state_change_event_subscriber.recv().await;
Expand Down

0 comments on commit 086e7df

Please sign in to comment.