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 <flokli@flokli.de>
This commit is contained in:
		
							parent
							
								
									d17f0592da
								
							
						
					
					
						commit
						a982f73477
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -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)]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue