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
|
|
@ -86,7 +86,9 @@ where
|
|||
#[cfg(test)]
|
||||
mod tests {
|
||||
use std::path::PathBuf;
|
||||
use std::sync::Arc;
|
||||
|
||||
use crate::directoryservice::DirectoryService;
|
||||
use crate::fixtures::{DIRECTORY_COMPLICATED, DIRECTORY_WITH_KEEP};
|
||||
use crate::utils::gen_directory_service;
|
||||
|
||||
|
|
@ -94,7 +96,7 @@ mod tests {
|
|||
|
||||
#[tokio::test]
|
||||
async fn test_descend_to() {
|
||||
let directory_service = gen_directory_service();
|
||||
let directory_service: Arc<dyn DirectoryService> = gen_directory_service().into();
|
||||
|
||||
let mut handle = directory_service.put_multiple_start();
|
||||
handle
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue