Skip to content

Commit

Permalink
pass test?
Browse files Browse the repository at this point in the history
  • Loading branch information
avantgardnerio committed Nov 27, 2024
1 parent 547ac73 commit ae2a41d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions object_store/src/aws/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -524,14 +524,14 @@ mod tests {
let opts = PutMultipartOpts::default();
let mut upload = store.put_multipart_opts(&path, opts).await.unwrap();

let payload = PutPayload::from_static(&[0u8; 10485760]);
let part = upload.put_part(payload).await;
if part.is_err() {
part.unwrap()
}

let part = upload.put_part(PutPayload::from_static(&[0u8; 5514256]));
part.await.unwrap();
upload
.put_part(PutPayload::from(vec![0u8; 10_000_000]))
.await
.unwrap();
upload
.put_part(PutPayload::from(vec![0u8; 5_000_000]))
.await
.unwrap();

let res = upload.complete().await.unwrap();
assert!(res.e_tag.is_some(), "Should have valid etag");
Expand Down

0 comments on commit ae2a41d

Please sign in to comment.