From 1103e8a7abc90b353f802128c7968302654b6e40 Mon Sep 17 00:00:00 2001 From: Paolo Barbolini Date: Sun, 29 Dec 2024 10:59:42 +0100 Subject: [PATCH] tests: fix upload part test --- tests/list_parts.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/list_parts.rs b/tests/list_parts.rs index a26f10d..1cceb4e 100644 --- a/tests/list_parts.rs +++ b/tests/list_parts.rs @@ -30,7 +30,7 @@ async fn list_parts() { // Upload some parts let part_size: usize = 5 * 1024 * 1024; let body = vec![b'r'; part_size]; - for part_num in 0..3u16 { + for part_num in 1..=3u16 { let action = bucket.upload_part(Some(&credentials), key, part_num, upload_id); let url = action.sign(Duration::from_secs(60)); client @@ -49,7 +49,7 @@ async fn list_parts() { let parts = get_list_of_parts(&client, action).await; assert_eq!(parts.parts.len(), 2); assert_eq!(parts.max_parts, 2); - assert_eq!(parts.next_part_number_marker, Some(1)); + assert_eq!(parts.next_part_number_marker, Some(2)); for part in &parts.parts { assert_eq!(part.size, part_size as u64); assert_eq!(part.etag, "\"0551556e17bba4b6c9dfbaab9e6f08dd\"");