From 74023a07a4b3d8e99645217b04683c0e54e23be8 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Wed, 20 Mar 2024 22:36:02 +0200 Subject: refactor(tvix/castore/*): drop utils.rs and grpc directorysvc tests This drops pretty much all of castore/utils.rs. There were only two things left in there, both a bit messy and only used for tests: Some `gen_*_service()` helper functions. These can be expressed by `from_addr("memory://")`. The other thing was some plumbing code to test the gRPC layer, by exposing a in-memory implementation via gRPC, and then connecting to that channel via a gRPC client again. Previous CLs moved the connection setup code to {directory,blob}service::tests::utils, close to where we exercise them, the new rstest-based tests. The tests interacting directly on the gRPC types are removed, all scenarios that were in there show now be covered through the rstest ones on the trait level. Change-Id: I450ccccf983b4c62145a25d81c36a40846664814 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11223 Reviewed-by: Connor Brewster Tested-by: BuildkiteCI --- tvix/castore/src/lib.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'tvix/castore/src/lib.rs') diff --git a/tvix/castore/src/lib.rs b/tvix/castore/src/lib.rs index 1ce092135b..1a7ac6b4b4 100644 --- a/tvix/castore/src/lib.rs +++ b/tvix/castore/src/lib.rs @@ -12,7 +12,6 @@ pub mod fs; pub mod import; pub mod proto; pub mod tonic; -pub mod utils; pub use digests::{B3Digest, B3_LEN}; pub use errors::Error; -- cgit 1.4.1