diff options
author | Florian Klink <flokli@flokli.de> | 2024-05-17T13·24+0200 |
---|---|---|
committer | flokli <flokli@flokli.de> | 2024-05-20T15·03+0000 |
commit | bc42c355cf8d83120b16214f3a1a17f67851d157 (patch) | |
tree | 3f2bd07c679adfc4304da185f80c85430aa0897a /tvix/store/src/pathinfoservice/grpc.rs | |
parent | d4978521b01e76b573f81d8c69e607cf6fdee986 (diff) |
refactor(tvix/store/pathinfo): test with PathInfoService directly r/8157
Since cl/…, a PathInfoService doesn't need to implement `calculate_nar` anymore, so most of them don't actually have a handle to a {Blob,Directory}Service anymore. This means, we can simplify the construction of them for test cases a lot. Change-Id: I100e9e1c9b00a049b4d6136c57aad4cdb04461c6 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11691 Reviewed-by: Connor Brewster <cbrewster@hey.com> Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/store/src/pathinfoservice/grpc.rs')
-rw-r--r-- | tvix/store/src/pathinfoservice/grpc.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tvix/store/src/pathinfoservice/grpc.rs b/tvix/store/src/pathinfoservice/grpc.rs index 93d2d67c31dc..f6a356cf180a 100644 --- a/tvix/store/src/pathinfoservice/grpc.rs +++ b/tvix/store/src/pathinfoservice/grpc.rs @@ -135,6 +135,7 @@ impl NarCalculationService for GRPCPathInfoService { #[cfg(test)] mod tests { use crate::pathinfoservice::tests::make_grpc_path_info_service_client; + use crate::pathinfoservice::PathInfoService; use crate::tests::fixtures; /// This ensures connecting via gRPC works as expected. |