patches flaky Merkle shreds test (#775)

This commit is contained in:
behzad nouri 2024-04-12 18:22:39 +00:00 committed by GitHub
parent 3715830bcc
commit 5b4f1a0e6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1929,10 +1929,10 @@ mod test {
.chain(
shreds
.iter()
.sorted_unstable_by_key(|shred| shred.fec_set_index())
.dedup_by(|shred, other| shred.fec_set_index() == other.fec_set_index())
.map(|shred| (shred.fec_set_index(), shred.merkle_root().unwrap())),
)
.sorted()
.tuple_windows()
.map(|((_, merkle_root), (fec_set_index, _))| (fec_set_index, merkle_root))
.collect();