test: use the upload's own key as key-marker in the truncation test

An upload-id-marker has to belong to the key-marker itself, S3 answers
key-marker=ba with an upload of bar with 400 Invalid uploadId marker.
This commit is contained in:
dualfroz committed 2026-10-05 20:25:15 +02:00
1 parent e1d2284906
commit 25ec56b451
1 file changed
+1 -1
+1 -1
View File
@@ -566,7 +566,7 @@ func ListMultipartUploads_upload_id_marker_truncated(s *S3Conf) error {
ctx, cancel := context.WithTimeout(context.Background(), shortTimeout)
out, err := s3client.ListMultipartUploads(ctx, &s3.ListMultipartUploadsInput{
Bucket: &bucket,
KeyMarker: getPtr("ba"),
KeyMarker: uploads[0].Key,
UploadIdMarker: uploads[0].UploadId,
MaxUploads: &test.maxUploads,
})