Fix failing tests.

This commit is contained in:
Jimmy Chen
2023-09-26 12:39:58 +10:00
parent 1458394cd9
commit 8f07a96b88
2 changed files with 9 additions and 4 deletions

View File

@@ -450,14 +450,14 @@ where
}
pub fn mock_execution_layer(self) -> Self {
self.mock_execution_layer_with_config()
self.mock_execution_layer_with_config(None)
}
pub fn mock_execution_layer_with_config(mut self) -> Self {
pub fn mock_execution_layer_with_config(mut self, builder_threshold: Option<u128>) -> Self {
let mock = mock_execution_layer_from_parts::<E>(
self.spec.as_ref().expect("cannot build without spec"),
self.runtime.task_executor.clone(),
None,
builder_threshold,
);
self.execution_layer = Some(mock.el.clone());
self.mock_execution_layer = Some(mock);