mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-08-09 14:33:18 +00:00
add test_get_block_not_found
This commit is contained in:
parent
f4fce6555a
commit
4e0ad2b47b
@ -115,5 +115,14 @@ mod tests {
|
|||||||
assert_eq!(retrieved_block.hash, block.hash);
|
assert_eq!(retrieved_block.hash, block.hash);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_get_block_not_found() {
|
||||||
|
let temp_dir = tempdir().unwrap();
|
||||||
|
let path = temp_dir.path();
|
||||||
|
|
||||||
|
let node_store = NodeBlockStore::open_db_with_genesis(path, None).unwrap();
|
||||||
|
|
||||||
|
let result = node_store.get_block_at_id(42);
|
||||||
|
assert!(result.is_err());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user