We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d511286 commit b55267bCopy full SHA for b55267b
src/downloader2.rs
@@ -547,12 +547,12 @@ mod tests {
547
}
548
549
#[tokio::test]
550
- async fn test_chunk_ranges() -> TestResult<()> {
+ async fn test_valid_ranges() -> TestResult<()> {
551
let store = crate::store::mem::Store::new();
552
let tt = store.import_bytes(vec![0u8;1025].into(), crate::BlobFormat::Raw).await?;
553
let entry = store.get_mut(tt.hash()).await?.unwrap();
554
let valid = crate::get::db::valid_ranges::<crate::store::mem::Store>(&entry).await?;
555
- println!("{valid:?}");
+ assert!(valid == ChunkRanges::from(ChunkNum(0)..ChunkNum(2)));
556
Ok(())
557
558
0 commit comments