chore: bump ef-tests stack size (#5585)

This commit is contained in:
Matthias Seitz
2023-11-27 13:32:00 +01:00
committed by GitHub
parent 02e4135bb4
commit 846a377f8e
2 changed files with 13 additions and 9 deletions

View File

@ -104,15 +104,8 @@ impl Case for BlockchainTestCase {
let mut stage = ExecutionStage::new_with_factory(
reth_revm::EvmProcessorFactory::new(Arc::new(case.network.clone().into())),
);
let target = last_block.as_ref().map(|b| b.number);
tokio::runtime::Builder::new_current_thread()
.build()
.expect("Could not build tokio RT")
.block_on(async {
// ignore error
let _ = stage.execute(&provider, ExecInput { target, checkpoint: None });
});
let _ = stage.execute(&provider, ExecInput { target, checkpoint: None });
}
// Validate post state

View File

@ -6,7 +6,18 @@ macro_rules! general_state_test {
($test_name:ident, $dir:ident) => {
#[test]
fn $test_name() {
BlockchainTests::new(format!("GeneralStateTests/{}", stringify!($dir))).run();
// TODO: can be removed with revm call-loop support
// <https://github.com/paradigmxyz/reth/issues/5582>
std::thread::Builder::new()
.stack_size(
1024 * 1024 * 4, // 4MB
)
.spawn(move || {
BlockchainTests::new(format!("GeneralStateTests/{}", stringify!($dir))).run();
})
.unwrap()
.join()
.unwrap();
}
};
}