about summary refs log tree commit diff
path: root/tvix/store/src/tests
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-06-12T12·13+0300
committerflokli <flokli@flokli.de>2023-06-12T12·43+0000
commit64a4f6185c5dcd96ee57978963324ea50f4dd6f7 (patch)
tree2bf4136908835b3b766c736e5f7713f05f664b69 /tvix/store/src/tests
parentb49f7cfec6a11816971d7d7c7cdcee3088bae7d2 (diff)
refactor(tvix/store/blobsvc): drop Result<_,_> around open_write r/6278
We never returned Err here anyways, and we can still return an error
during the first (or subsequent) write(s).

Change-Id: I4b4cd3d35f6ea008e9ffe2f7b71bfc9187309e2f
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8750
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
Diffstat (limited to 'tvix/store/src/tests')
-rw-r--r--tvix/store/src/tests/nar_renderer.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tvix/store/src/tests/nar_renderer.rs b/tvix/store/src/tests/nar_renderer.rs
index 37a01c2e1826..b92fdc087b28 100644
--- a/tvix/store/src/tests/nar_renderer.rs
+++ b/tvix/store/src/tests/nar_renderer.rs
@@ -61,7 +61,7 @@ fn single_file_wrong_blob_size() {
     let blob_service = gen_blob_service();
 
     // insert blob into the store
-    let mut writer = blob_service.open_write().unwrap();
+    let mut writer = blob_service.open_write();
     io::copy(
         &mut io::Cursor::new(HELLOWORLD_BLOB_CONTENTS.to_vec()),
         &mut writer,
@@ -125,7 +125,7 @@ fn single_file() {
     let blob_service = gen_blob_service();
 
     // insert blob into the store
-    let mut writer = blob_service.open_write().unwrap();
+    let mut writer = blob_service.open_write();
     io::copy(
         &mut io::Cursor::new(HELLOWORLD_BLOB_CONTENTS.to_vec()),
         &mut writer,
@@ -158,7 +158,7 @@ fn test_complicated() {
 
     // put all data into the stores.
     // insert blob into the store
-    let mut writer = blob_service.open_write().unwrap();
+    let mut writer = blob_service.open_write();
     io::copy(
         &mut io::Cursor::new(EMPTY_BLOB_CONTENTS.to_vec()),
         &mut writer,