mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-26 01:40:36 +00:00
chore: replace result assertions (#1840)
* s/assert!\((.*)\.is_ok\(\)\);/\1.unwrap\(\);/g * s/assert!\((.*)\.is_some\(\)\);/\1.unwrap\(\);/g
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user