chore(store/src/tests): make clippy shut up
Change-Id: I6dfceaa32a8c01f8395b7889ae19847fabf95ed3 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10214 Tested-by: BuildkiteCI Autosubmit: Adam Joseph <adam@westernsemico.com> Reviewed-by: flokli <flokli@flokli.de>
This commit is contained in:
parent
dfca879535
commit
36c3e646e1
1 changed files with 6 additions and 12 deletions
|
@ -129,12 +129,9 @@ async fn single_file() {
|
|||
|
||||
// insert blob into the store
|
||||
let mut writer = blob_service.open_write().await;
|
||||
tokio::io::copy(
|
||||
&mut io::Cursor::new(HELLOWORLD_BLOB_CONTENTS.clone()),
|
||||
&mut writer,
|
||||
)
|
||||
.await
|
||||
.unwrap();
|
||||
tokio::io::copy(&mut io::Cursor::new(HELLOWORLD_BLOB_CONTENTS), &mut writer)
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
assert_eq!(
|
||||
HELLOWORLD_BLOB_DIGEST.clone(),
|
||||
|
@ -168,12 +165,9 @@ async fn test_complicated() {
|
|||
// put all data into the stores.
|
||||
// insert blob into the store
|
||||
let mut writer = blob_service.open_write().await;
|
||||
tokio::io::copy(
|
||||
&mut io::Cursor::new(EMPTY_BLOB_CONTENTS.clone()),
|
||||
&mut writer,
|
||||
)
|
||||
.await
|
||||
.unwrap();
|
||||
tokio::io::copy(&mut io::Cursor::new(EMPTY_BLOB_CONTENTS), &mut writer)
|
||||
.await
|
||||
.unwrap();
|
||||
assert_eq!(EMPTY_BLOB_DIGEST.clone(), writer.close().await.unwrap());
|
||||
|
||||
directory_service
|
||||
|
|
Loading…
Reference in a new issue