diff options
author | Ilan Joselevich <personal@ilanjoselevich.com> | 2024-07-26T20·57+0200 |
---|---|---|
committer | Ilan Joselevich <personal@ilanjoselevich.com> | 2024-07-28T17·47+0000 |
commit | a982f734775de733c2fde60cc2689cbaf57d8515 (patch) | |
tree | e886f53e127a160afc7b9004036d68e53d2201ab /tvix/store/src | |
parent | d17f0592da9d80c614b393f6d3bc0a960bcd1018 (diff) |
fix(tvix/store): adjust from_addr redb test to do what it says r/8420
Change-Id: If15f161d5c7aba05ac1d8e2a4f6fac5a7053943a Reviewed-on: https://cl.tvl.fyi/c/depot/+/12040 Tested-by: BuildkiteCI Reviewed-by: flokli <flokli@flokli.de>
Diffstat (limited to 'tvix/store/src')
-rw-r--r-- | tvix/store/src/pathinfoservice/from_addr.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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)] |