chore: replace result assertions (#1840)

* s/assert!\((.*)\.is_ok\(\)\);/\1.unwrap\(\);/g

* s/assert!\((.*)\.is_some\(\)\);/\1.unwrap\(\);/g
This commit is contained in:
Lei, HUANG
2023-06-27 19:14:48 +08:00
committed by GitHub
parent b737a240de
commit f287d3115b
92 changed files with 269 additions and 304 deletions

View File

@@ -300,8 +300,8 @@ async fn test_object_store_cache_policy() -> Result<()> {
let p3 = "test_file3";
store.write(p3, "Hello, object3!").await.unwrap();
assert!(store.read(p3).await.is_ok());
assert!(store.range_read(p3, 0..5).await.is_ok());
let _ = store.read(p3).await.unwrap();
let _ = store.range_read(p3, 0..5).await.unwrap();
assert_cache_files(
&cache_store,