chore(tvix/store): migrate import.rs and tests/pathinfo.rs to rstest
Also, rename the DUMMY_NAME constant in the fixtures to DUMMY_PATH, which aligns more with the ToString representation and from_bytes conversions we have on StorePath[Ref]. Change-Id: I39763c9dfa84c5d86f2fd0171b3a4d36fd72f267 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11464 Autosubmit: flokli <flokli@flokli.de> Tested-by: BuildkiteCI Reviewed-by: Connor Brewster <cbrewster@hey.com>
This commit is contained in:
parent
6b5d664930
commit
a020755c58
5 changed files with 72 additions and 87 deletions
|
|
@ -207,7 +207,7 @@ mod tests {
|
|||
};
|
||||
|
||||
let path_info = grpc_client
|
||||
.get(fixtures::DUMMY_OUTPUT_HASH)
|
||||
.get(fixtures::DUMMY_PATH_DIGEST)
|
||||
.await
|
||||
.expect("must not be error");
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ use tvix_castore::{blobservice::BlobService, directoryservice::DirectoryService}
|
|||
|
||||
use super::PathInfoService;
|
||||
use crate::proto::PathInfo;
|
||||
use crate::tests::fixtures::DUMMY_OUTPUT_HASH;
|
||||
use crate::tests::fixtures::DUMMY_PATH_DIGEST;
|
||||
|
||||
mod utils;
|
||||
use self::utils::make_grpc_path_info_service_client;
|
||||
|
|
@ -71,7 +71,7 @@ pub fn path_info_services(
|
|||
async fn not_found(services: BSDSPS) {
|
||||
let (_, _, path_info_service) = services;
|
||||
assert!(path_info_service
|
||||
.get(DUMMY_OUTPUT_HASH)
|
||||
.get(DUMMY_PATH_DIGEST)
|
||||
.await
|
||||
.expect("must succeed")
|
||||
.is_none());
|
||||
|
|
@ -105,7 +105,7 @@ async fn put_get(services: BSDSPS) {
|
|||
|
||||
// get it back
|
||||
let resp = path_info_service
|
||||
.get(DUMMY_OUTPUT_HASH)
|
||||
.get(DUMMY_PATH_DIGEST)
|
||||
.await
|
||||
.expect("must succeed");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue