Fix more build.
This commit is contained in:
parent
356aca2db5
commit
b8c492644b
@ -689,6 +689,9 @@ mod tests {
|
||||
mode: Some("dark".into()),
|
||||
mode_timeout: Some(15u64),
|
||||
mode_alarm: Some(10u64),
|
||||
auto_update: None,
|
||||
no_download: None,
|
||||
no_consensus: None,
|
||||
chain: Some("./chain.json".into()),
|
||||
db_path: None,
|
||||
keys_path: None,
|
||||
|
@ -725,7 +725,7 @@ mod tests {
|
||||
use super::*;
|
||||
use cli::Args;
|
||||
use ethcore_rpc::NetworkSettings;
|
||||
use ethcore::client::{VMType, BlockId};
|
||||
use ethcore::client::{VMType, BlockId, UpdatePolicy, UpdateFilter};
|
||||
use ethcore::miner::{MinerOptions, PrioritizationStrategy};
|
||||
use helpers::{replace_home, default_network_config};
|
||||
use run::RunCmd;
|
||||
@ -938,6 +938,7 @@ mod tests {
|
||||
check_seal: true,
|
||||
download_old_blocks: true,
|
||||
require_consensus: true,
|
||||
update_policy: Default::default(),
|
||||
}));
|
||||
}
|
||||
|
||||
@ -972,11 +973,8 @@ mod tests {
|
||||
|
||||
// then
|
||||
assert_eq!(conf0.update_policy().unwrap(), UpdatePolicy{enable_downloading: true, filter: UpdateFilter::Critical});
|
||||
mining_options.tx_queue_strategy = PrioritizationStrategy::GasFactorAndGasPrice;
|
||||
assert_eq!(conf1.update_policy().unwrap(), UpdatePolicy{enable_downloading: true, filter: UpdateFilter::All});
|
||||
mining_options.tx_queue_strategy = PrioritizationStrategy::GasPriceOnly;
|
||||
assert_eq!(conf2.update_policy().unwrap(), UpdatePolicy{enable_downloading: false, filter: UpdateFilter::Patch});
|
||||
mining_options.tx_queue_strategy = PrioritizationStrategy::GasAndGasPrice;
|
||||
assert!(conf3.update_policy().is_err());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user