mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-11 07:25:09 -05:00
test: use similar-asserts instead of pretty-assertions (#6208)
This commit is contained in:
@@ -105,7 +105,7 @@ eyre.workspace = true
|
||||
clap = { workspace = true, features = ["derive"] }
|
||||
tempfile.workspace = true
|
||||
backon = "0.4"
|
||||
pretty_assertions = "1.3.0"
|
||||
similar-asserts.workspace = true
|
||||
humantime = "2.1.0"
|
||||
itertools.workspace = true
|
||||
rayon.workspace = true
|
||||
|
||||
@@ -233,7 +233,7 @@ impl Command {
|
||||
while in_mem_updates_iter.peek().is_some() || incremental_updates_iter.peek().is_some() {
|
||||
match (in_mem_updates_iter.next(), incremental_updates_iter.next()) {
|
||||
(Some(in_mem), Some(incr)) => {
|
||||
pretty_assertions::assert_eq!(in_mem.0, incr.0, "Nibbles don't match");
|
||||
similar_asserts::assert_eq!(in_mem.0, incr.0, "Nibbles don't match");
|
||||
if in_mem.1 != incr.1 &&
|
||||
matches!(in_mem.0, TrieKey::AccountNode(ref nibbles) if nibbles.0.len() > self.skip_node_depth.unwrap_or_default())
|
||||
{
|
||||
@@ -253,7 +253,7 @@ impl Command {
|
||||
}
|
||||
}
|
||||
|
||||
pretty_assertions::assert_eq!(
|
||||
similar_asserts::assert_eq!(
|
||||
incremental_mismatched,
|
||||
in_mem_mismatched,
|
||||
"Mismatched trie updates"
|
||||
|
||||
@@ -311,7 +311,7 @@ impl Command {
|
||||
{
|
||||
match (incremental_account_trie_iter.next(), clean_account_trie_iter.next()) {
|
||||
(Some(incremental), Some(clean)) => {
|
||||
pretty_assertions::assert_eq!(
|
||||
similar_asserts::assert_eq!(
|
||||
incremental.0,
|
||||
clean.0,
|
||||
"Nibbles don't match"
|
||||
@@ -364,7 +364,7 @@ impl Command {
|
||||
}
|
||||
}
|
||||
|
||||
pretty_assertions::assert_eq!(
|
||||
similar_asserts::assert_eq!(
|
||||
(
|
||||
incremental_account_mismatched,
|
||||
first_mismatched_storage.as_ref().map(|(incremental, _)| incremental)
|
||||
|
||||
Reference in New Issue
Block a user