Skip to content

Commit

Permalink
fix: don't drop the TaskManager (paradigmxyz#8941)
Browse files Browse the repository at this point in the history
  • Loading branch information
prestwich authored Jun 18, 2024
1 parent 450f06a commit da0004e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/exex/test-utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ pub struct TestExExHandle {
pub events_rx: UnboundedReceiver<ExExEvent>,
/// Channel for sending notifications to the Execution Extension
pub notifications_tx: Sender<ExExNotification>,
/// Node task manager
pub tasks: TaskManager,
}

impl TestExExHandle {
Expand Down Expand Up @@ -283,7 +285,7 @@ pub async fn test_exex_context_with_chain_spec(
components,
};

Ok((ctx, TestExExHandle { genesis, provider_factory, events_rx, notifications_tx }))
Ok((ctx, TestExExHandle { genesis, provider_factory, events_rx, notifications_tx, tasks }))
}

/// Creates a new [`ExExContext`] with (mainnet)[`MAINNET`] chain spec.
Expand Down

0 comments on commit da0004e

Please sign in to comment.