From a982f734775de733c2fde60cc2689cbaf57d8515 Mon Sep 17 00:00:00 2001 From: Ilan Joselevich Date: Fri, 26 Jul 2024 22:57:11 +0200 Subject: fix(tvix/store): adjust from_addr redb test to do what it says Change-Id: If15f161d5c7aba05ac1d8e2a4f6fac5a7053943a Reviewed-on: https://cl.tvl.fyi/c/depot/+/12040 Tested-by: BuildkiteCI Reviewed-by: flokli --- tvix/store/src/pathinfoservice/from_addr.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tvix/store/src/pathinfoservice') diff --git a/tvix/store/src/pathinfoservice/from_addr.rs b/tvix/store/src/pathinfoservice/from_addr.rs index 3e8e8c139668..d4719219b996 100644 --- a/tvix/store/src/pathinfoservice/from_addr.rs +++ b/tvix/store/src/pathinfoservice/from_addr.rs @@ -96,10 +96,10 @@ mod tests { /// This sets a memory url path to "/foo", which is invalid. #[case::memory_invalid_root_path_foo("memory:///foo", false)] /// redb with a host, and a valid path path, which should fail. - #[case::redb_invalid_host_with_valid_path(&format!("redb://foo.example{}", &TMPDIR_REDB_1.path().to_str().unwrap()), false)] + #[case::redb_invalid_host_with_valid_path(&format!("redb://foo.example{}", &TMPDIR_REDB_1.path().join("bar").to_str().unwrap()), false)] /// redb with / as path, which should fail. #[case::redb_invalid_root("redb:///", false)] - /// redb with / as path, which should succeed. + /// This configures redb with a valid path, which should succeed. #[case::redb_valid_path(&format!("redb://{}", &TMPDIR_REDB_2.path().join("foo").to_str().unwrap()), true)] /// redb using the in-memory backend, which should succeed. #[case::redb_valid_in_memory("redb://", true)] -- cgit 1.4.1