refactor(tvix/castore/tests): let gen_*_service return Boxes
Only convert to and reuse an Arc<…> where needed. Change-Id: I2c1bc69cca5a4a3ebd3bdb33d6e28e1f5fb86cb9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10514 Tested-by: BuildkiteCI Autosubmit: flokli <flokli@flokli.de> Reviewed-by: raitobezarius <tvl@lahfa.xyz>
This commit is contained in:
parent
09a92b78d2
commit
597a6b6205
8 changed files with 63 additions and 37 deletions
|
|
@ -170,7 +170,12 @@ mod tests {
|
|||
#[test_case("grpc+http://localhost/some-path", false; "grpc valid invalid host and path")]
|
||||
#[tokio::test]
|
||||
async fn test_from_addr_tokio(uri_str: &str, is_ok: bool) {
|
||||
let resp = from_addr(uri_str, gen_blob_service(), gen_directory_service()).await;
|
||||
let resp = from_addr(
|
||||
uri_str,
|
||||
gen_blob_service().into(),
|
||||
gen_directory_service().into(),
|
||||
)
|
||||
.await;
|
||||
|
||||
assert_eq!(resp.is_ok(), is_ok);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue