Skip to content

Commit

Permalink
test: ignore some tests in miri
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes committed Oct 4, 2024
1 parent cc7d1a6 commit a568625
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/primitives/src/map/fixed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ mod tests {
}

#[test]
#[cfg_attr(miri, ignore = "foldhash queries time (orlp/foldhash#4)")]
fn fb_hasher() {
// Just by running it once we test that it compiles and that debug assertions are correct.
ruint::const_for!(N in [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
Expand All @@ -206,6 +207,7 @@ mod tests {
}

#[test]
#[cfg_attr(miri, ignore = "foldhash queries time (orlp/foldhash#4)")]
fn map() {
let mut map = AddressHashMap::<bool>::default();
map.insert(Address::ZERO, true);
Expand Down
1 change: 1 addition & 0 deletions crates/primitives/src/map/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ mod tests {
use super::*;

#[test]
#[cfg_attr(miri, ignore = "foldhash queries time (orlp/foldhash#4)")]
fn default_hasher_builder_traits() {
let hash_builder = <DefaultHashBuilder as Default>::default();
let _hash_builder2 = <DefaultHashBuilder as Clone>::clone(&hash_builder);
Expand Down
1 change: 1 addition & 0 deletions tests/core-sol/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ sol! {
}

#[test]
#[cfg_attr(miri, ignore = "foldhash queries time (orlp/foldhash#4)")]
fn do_stuff() {
let mut set = alloy_core::primitives::map::HashSet::<MyStruct>::default();
set.insert(Default::default());
Expand Down

0 comments on commit a568625

Please sign in to comment.