mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-19 22:08:30 +00:00
Update dependencies to get rid of the yanked deps (#4994)
* Initial attempt to upgrade hashbrown to latest to get rid of the crate warnings. * Replace `.expect()` usage with use of `const`. * Update ahash 0.7 as well * Remove unsafe code. * Update `lru` to 0.12 and fix release test errors. * Set non-blocking socket * Bump testcontainers to 0.15. * Fix lint --------- Co-authored-by: Michael Sproul <michael@sigmaprime.io>
This commit is contained in:
@@ -18,6 +18,7 @@ use std::str::FromStr;
|
||||
use std::string::ToString;
|
||||
use std::time::Duration;
|
||||
use tempfile::TempDir;
|
||||
use types::non_zero_usize::new_non_zero_usize;
|
||||
use types::{
|
||||
Address, Checkpoint, Epoch, ExecutionBlockHash, ForkName, Hash256, MainnetEthSpec,
|
||||
ProgressiveBalancesMode,
|
||||
@@ -1769,14 +1770,19 @@ fn block_cache_size_flag() {
|
||||
CommandLineTest::new()
|
||||
.flag("block-cache-size", Some("4"))
|
||||
.run_with_zero_port()
|
||||
.with_config(|config| assert_eq!(config.store.block_cache_size, 4_usize));
|
||||
.with_config(|config| assert_eq!(config.store.block_cache_size, new_non_zero_usize(4)));
|
||||
}
|
||||
#[test]
|
||||
fn historic_state_cache_size_flag() {
|
||||
CommandLineTest::new()
|
||||
.flag("historic-state-cache-size", Some("4"))
|
||||
.run_with_zero_port()
|
||||
.with_config(|config| assert_eq!(config.store.historic_state_cache_size, 4_usize));
|
||||
.with_config(|config| {
|
||||
assert_eq!(
|
||||
config.store.historic_state_cache_size,
|
||||
new_non_zero_usize(4)
|
||||
)
|
||||
});
|
||||
}
|
||||
#[test]
|
||||
fn historic_state_cache_size_default() {
|
||||
@@ -2001,7 +2007,10 @@ fn slasher_attestation_cache_size_flag() {
|
||||
.slasher
|
||||
.as_ref()
|
||||
.expect("Unable to parse Slasher config");
|
||||
assert_eq!(slasher_config.attestation_root_cache_size, 10000);
|
||||
assert_eq!(
|
||||
slasher_config.attestation_root_cache_size,
|
||||
new_non_zero_usize(10000)
|
||||
);
|
||||
});
|
||||
}
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user