Skip to content

Commit

Permalink
add empty tests for remaining cases
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhirin committed Sep 17, 2024
1 parent 98ceba5 commit 4139d00
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion crates/exex/exex/src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1301,6 +1301,12 @@ mod tests {
Ok(())
}

#[ignore]
#[tokio::test]
async fn exex_notifications_behind_head_non_canonical() -> eyre::Result<()> {
Ok(())
}

#[tokio::test]
async fn exex_notifications_same_head_canonical() -> eyre::Result<()> {
let provider_factory = create_test_provider_factory();
Expand Down Expand Up @@ -1345,13 +1351,19 @@ mod tests {
notifications_rx,
)
.with_head(exex_head);
let new_notification = notifications.next().await.transpose()?;

let new_notification = notifications.next().await.transpose()?;
assert_eq!(new_notification, Some(notification));

Ok(())
}

#[ignore]
#[tokio::test]
async fn exex_notifications_same_head_non_canonical() -> eyre::Result<()> {
Ok(())
}

#[tokio::test]
async fn test_notifications_ahead_of_head() -> eyre::Result<()> {
let mut rng = generators::rng();
Expand Down Expand Up @@ -1403,6 +1415,8 @@ mod tests {
let new_notification = poll_fn(|cx| Poll::Ready(notifications.poll_next_unpin(cx))).await;
assert!(new_notification.is_pending());

// Imitate the node catching up with the ExEx by sending a notification for the missing
// block
let notification = ExExNotification::ChainCommitted {
new: Arc::new(Chain::new(
vec![random_block(
Expand Down

0 comments on commit 4139d00

Please sign in to comment.