about summary refs log tree commit diff
path: root/tvix/store/src/proto/tests/pathinfo.rs
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-10-05T07·52+0300
committerclbot <clbot@tvl.fyi>2023-10-05T09·52+0000
commit7706a8f224d6277b7c4f32ffaf869dc7f28e643d (patch)
tree944140c800e01582a4faf1c0e0a975158c01c94e /tvix/store/src/proto/tests/pathinfo.rs
parentc67ab911ebdefddda5b05981834c783c0e7a3d7a (diff)
refactor(tvix/store): mv *Err*::Invalid{Node,}DigestLen r/6705
There's other digests in the PathInfo structure, that also might have
wrong digest lengths. Rename this to give some room for them, and update
the error message a bit as we go.

Change-Id: I06562664721156e658f2ed14ba1de907377d284b
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9543
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Reviewed-by: edef <edef@edef.eu>
Diffstat (limited to '')
-rw-r--r--tvix/store/src/proto/tests/pathinfo.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tvix/store/src/proto/tests/pathinfo.rs b/tvix/store/src/proto/tests/pathinfo.rs
index dfbeb831d7..a74b7c3f7c 100644
--- a/tvix/store/src/proto/tests/pathinfo.rs
+++ b/tvix/store/src/proto/tests/pathinfo.rs
@@ -43,7 +43,7 @@ fn validate_no_node(
         digest: Bytes::new(),
         size: 0,
     },
-    Err(ValidatePathInfoError::InvalidDigestLen(0));
+    Err(ValidatePathInfoError::InvalidNodeDigestLen(0));
     "invalid digest length"
 )]
 #[test_case(
@@ -88,7 +88,7 @@ fn validate_directory(
         digest: Bytes::new(),
         ..Default::default()
     },
-    Err(ValidatePathInfoError::InvalidDigestLen(0));
+    Err(ValidatePathInfoError::InvalidNodeDigestLen(0));
     "invalid digest length"
 )]
 #[test_case(