From 46ca98a7a2f1c59794c007ea880b8ffd12db550e Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sun, 14 May 2023 13:14:13 +0300 Subject: refactor(tvix/nix-compat): update expect_err strings 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 Reviewed-by: tazjin Tested-by: BuildkiteCI --- tvix/nix-compat/src/store_path/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tvix') diff --git a/tvix/nix-compat/src/store_path/mod.rs b/tvix/nix-compat/src/store_path/mod.rs index 7fe425d8edb2..7dce1e578d06 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] -- cgit 1.4.1