about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-05-14T10·14+0300
committerflokli <flokli@flokli.de>2023-05-14T18·59+0000
commit46ca98a7a2f1c59794c007ea880b8ffd12db550e (patch)
tree9208f9d5e951fbebf64d79d909d393cf87045300
parenta9a2fce27e295bc40a4402a1230ef08164484d29 (diff)
refactor(tvix/nix-compat): update expect_err strings r/6139
Make it more explicit that we expect the from_string calls to fail here.

Change-Id: Ib3d46fc0850e364125e3548670ef301eeea2e45c
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8565
Autosubmit: flokli <flokli@flokli.de>
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
-rw-r--r--tvix/nix-compat/src/store_path/mod.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/tvix/nix-compat/src/store_path/mod.rs b/tvix/nix-compat/src/store_path/mod.rs
index 7fe425d8ed..7dce1e578d 100644
--- a/tvix/nix-compat/src/store_path/mod.rs
+++ b/tvix/nix-compat/src/store_path/mod.rs
@@ -161,13 +161,13 @@ mod tests {
     #[test]
     fn invalid_hash_length() {
         StorePath::from_string("00bgd045z0d4icpbc2yy-net-tools-1.60_p20170221182432")
-            .expect_err("No error raised.");
+            .expect_err("must fail");
     }
 
     #[test]
     fn invalid_encoding_hash() {
         StorePath::from_string("00bgd045z0d4icpbc2yyz4gx48aku4la-net-tools-1.60_p20170221182432")
-            .expect_err("No error raised.");
+            .expect_err("must fail");
     }
 
     #[test]
@@ -175,13 +175,13 @@ mod tests {
         StorePath::from_string(
             "00bgd045z0d4icpbc2yyz4gx48aku4la-net-tools-1.60_p20170221182432/bin/arp",
         )
-        .expect_err("No error raised.");
+        .expect_err("must fail");
     }
 
     #[test]
     fn no_dash_between_hash_and_name() {
         StorePath::from_string("00bgd045z0d4icpbc2yyz4gx48ak44lanet-tools-1.60_p20170221182432")
-            .expect_err("No error raised.");
+            .expect_err("must fail");
     }
 
     #[test]