diff --git a/ipld/amt/src/iter.rs b/ipld/amt/src/iter.rs index a07ab0664..5d0399ed9 100644 --- a/ipld/amt/src/iter.rs +++ b/ipld/amt/src/iter.rs @@ -165,7 +165,6 @@ where #[cfg(test)] mod tests { use crate::Amt; - use fvm_ipld_blockstore::tracking::BSStats; use fvm_ipld_blockstore::tracking::TrackingBlockstore; use fvm_ipld_blockstore::MemoryBlockstore; use fvm_ipld_encoding::BytesDe; diff --git a/ipld/amt/tests/amt_tests.rs b/ipld/amt/tests/amt_tests.rs index d6e097d38..b4c99b1bb 100644 --- a/ipld/amt/tests/amt_tests.rs +++ b/ipld/amt/tests/amt_tests.rs @@ -3,14 +3,11 @@ // SPDX-License-Identifier: Apache-2.0, MIT use std::fmt::Debug; - -use fvm_ipld_amt::AmtImpl; use fvm_ipld_amt::{Amt, Amtv0, Error, MAX_INDEX}; use fvm_ipld_blockstore::tracking::{BSStats, TrackingBlockstore}; use fvm_ipld_blockstore::{Blockstore, MemoryBlockstore}; use fvm_ipld_encoding::de::DeserializeOwned; use fvm_ipld_encoding::ser::Serialize; -use fvm_ipld_encoding::strict_bytes::ByteBuf; use fvm_ipld_encoding::BytesDe; fn assert_get(a: &Amt, i: u64, v: &V) @@ -623,7 +620,7 @@ fn tbytes(bz: &[u8]) -> BytesDe { #[test] fn new_from_iter() { let mem = MemoryBlockstore::default(); - let data: Vec = (0..10).map(|i| format!("thing{i}")).collect(); + let data: Vec = (0..1000).map(|i| format!("thing{i}")).collect(); let k = Amt::<&str, _>::new_from_iter(&mem, data.iter().map(|s| &**s)).unwrap(); let a: Amt = Amt::load(&k, &mem).unwrap();