Skip to content

Commit b55267b

Browse files
committed
Make the test a real test
1 parent d511286 commit b55267b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/downloader2.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -547,12 +547,12 @@ mod tests {
547547
}
548548

549549
#[tokio::test]
550-
async fn test_chunk_ranges() -> TestResult<()> {
550+
async fn test_valid_ranges() -> TestResult<()> {
551551
let store = crate::store::mem::Store::new();
552552
let tt = store.import_bytes(vec![0u8;1025].into(), crate::BlobFormat::Raw).await?;
553553
let entry = store.get_mut(tt.hash()).await?.unwrap();
554554
let valid = crate::get::db::valid_ranges::<crate::store::mem::Store>(&entry).await?;
555-
println!("{valid:?}");
555+
assert!(valid == ChunkRanges::from(ChunkNum(0)..ChunkNum(2)));
556556
Ok(())
557557
}
558558

0 commit comments

Comments
 (0)