fix: tests

This commit is contained in:
rymnc 2023-04-24 18:23:27 +05:30
parent 97710d597e
commit 9222310701
No known key found for this signature in database
GPG Key ID: C740033EE3F41EBD
3 changed files with 3 additions and 3 deletions

View File

@ -239,7 +239,7 @@ where
Ok(()) Ok(())
} }
pub fn set_range(&mut self, start: usize, leaves: &[H::Fr]) -> Result<()> { pub fn set_range(&mut self, start: usize, leaves: &[H::Fr]) -> PmtreeResult<()> {
self.batch_insert(Some(start), leaves) self.batch_insert(Some(start), leaves)
} }

View File

@ -133,7 +133,7 @@ fn batch_insertions() -> PmtreeResult<()> {
} }
#[test] #[test]
fn set_range() -> Result<()> { fn set_range() -> PmtreeResult<()> {
let mut mt = MerkleTree::<MemoryDB, MyKeccak>::new(2, MemoryDBConfig)?; let mut mt = MerkleTree::<MemoryDB, MyKeccak>::new(2, MemoryDBConfig)?;
let leaves = [ let leaves = [

View File

@ -172,7 +172,7 @@ fn batch_insertions() -> PmtreeResult<()> {
} }
#[test] #[test]
fn set_range() -> Result<()> { fn set_range() -> PmtreeResult<()> {
let mut mt = MerkleTree::<MySled, MyKeccak>::new( let mut mt = MerkleTree::<MySled, MyKeccak>::new(
2, 2,
SledConfig { SledConfig {