Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
forcodedancing committed Oct 24, 2024
1 parent 79b06c6 commit dcd9752
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
3 changes: 3 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions crates/chain-state/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,13 @@ alloy-consensus.workspace = true
rand.workspace = true
revm.workspace = true
reth-provider = { workspace = true, features = ["test-utils"] }
serial_test = "3.1.1"

[features]
test-utils = [
"alloy-signer",
"alloy-signer-local",
"alloy-consensus",
"rand",
"revm"
"alloy-signer",
"alloy-signer-local",
"alloy-consensus",
"rand",
"revm"
]
3 changes: 3 additions & 0 deletions crates/chain-state/src/cache/cached_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,11 @@ mod tests {
primitives::U256,
};
use reth_storage_api::TryIntoHistoricalStateProvider;
use serial_test::serial;
use std::collections::HashMap;

#[test]
#[serial]
fn test_basic_account_and_clear() {
let factory = create_test_provider_factory();

Expand Down Expand Up @@ -206,6 +208,7 @@ mod tests {
}

#[test]
#[serial]
fn test_apply_bundle_state() {
let factory = test_utils::create_test_provider_factory();
let consistent_view = ConsistentDbView::new_with_latest_tip(factory.clone()).unwrap();
Expand Down
2 changes: 1 addition & 1 deletion crates/engine/local/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ where
mode: MiningMode,
) -> Self {
let persistence_handle =
PersistenceHandle::spawn_service(provider, pruner, sync_metrics_tx);
PersistenceHandle::spawn_service(provider, pruner, sync_metrics_tx, false);

Self {
payload_builder,
Expand Down

0 comments on commit dcd9752

Please sign in to comment.