From 1521774ccc9b00d85435fa2a358513de84f8f67c Mon Sep 17 00:00:00 2001 From: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Date: Fri, 4 Oct 2024 20:38:56 +0200 Subject: [PATCH] test: ignore some tests in miri --- crates/primitives/src/map/fixed.rs | 2 ++ tests/core-sol/src/lib.rs | 1 + 2 files changed, 3 insertions(+) diff --git a/crates/primitives/src/map/fixed.rs b/crates/primitives/src/map/fixed.rs index 52a62f56b..6e1af0a10 100644 --- a/crates/primitives/src/map/fixed.rs +++ b/crates/primitives/src/map/fixed.rs @@ -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, @@ -206,6 +207,7 @@ mod tests { } #[test] + #[cfg_attr(miri, ignore = "foldhash queries time (orlp/foldhash#4)")] fn map() { let mut map = AddressHashMap::::default(); map.insert(Address::ZERO, true); diff --git a/tests/core-sol/src/lib.rs b/tests/core-sol/src/lib.rs index a5029c1d1..72a4cafdb 100644 --- a/tests/core-sol/src/lib.rs +++ b/tests/core-sol/src/lib.rs @@ -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::::default(); set.insert(Default::default());