refactor(tvix/store/tests/nar_renderer): only upload EMPTY_BLOB
This also uploaded HELLOWORLD_BLOB_CONTENTS before, but it's not referred from anywhere in the fixture. Change-Id: I823133afe0f08d18a59e2ac4e4d4bb7d34ce8a2b Reviewed-on: https://cl.tvl.fyi/c/depot/+/8158 Tested-by: BuildkiteCI Reviewed-by: raitobezarius <tvl@lahfa.xyz>
This commit is contained in:
parent
092f8a7df8
commit
52a5181eba
1 changed files with 13 additions and 15 deletions
|
@ -191,22 +191,20 @@ fn test_complicated() {
|
|||
let directory_service = gen_directory_service(tmpdir.path());
|
||||
|
||||
// put all data into the stores.
|
||||
for blob_contents in [HELLOWORLD_BLOB_CONTENTS, EMPTY_BLOB_CONTENTS] {
|
||||
let digest = chunk_service.put(blob_contents.to_vec()).unwrap();
|
||||
let digest = chunk_service.put(EMPTY_BLOB_CONTENTS.to_vec()).unwrap();
|
||||
|
||||
blob_service
|
||||
.put(
|
||||
&digest,
|
||||
proto::BlobMeta {
|
||||
chunks: vec![proto::blob_meta::ChunkMeta {
|
||||
digest: digest.to_vec(),
|
||||
size: blob_contents.len() as u32,
|
||||
}],
|
||||
..Default::default()
|
||||
},
|
||||
)
|
||||
.unwrap();
|
||||
}
|
||||
blob_service
|
||||
.put(
|
||||
&digest,
|
||||
proto::BlobMeta {
|
||||
chunks: vec![proto::blob_meta::ChunkMeta {
|
||||
digest: digest.to_vec(),
|
||||
size: EMPTY_BLOB_CONTENTS.len() as u32,
|
||||
}],
|
||||
..Default::default()
|
||||
},
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
directory_service.put(DIRECTORY_WITH_KEEP.clone()).unwrap();
|
||||
directory_service
|
||||
|
|
Loading…
Reference in a new issue