Skip to content

Commit 15469e7

Browse files
Fix Unit test (#4108)
1 parent 8d58406 commit 15469e7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

sdk/test/Services/S3/UnitTests/Custom/MultipartUploadValidationTests.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,18 @@ public async Task Validation_HappyPath()
6969
return new UploadPartResponse { PartNumber = request.PartNumber };
7070
});
7171

72+
s3Client
73+
.Setup(x => x.CompleteMultipartUploadAsync(
74+
It.IsAny<CompleteMultipartUploadRequest>(),
75+
It.IsAny<CancellationToken>()))
76+
.ReturnsAsync(new CompleteMultipartUploadResponse
77+
{
78+
BucketName = "test-bucket",
79+
Key = "test",
80+
ETag = "test-etag",
81+
Location = "https://test-bucket.s3.amazonaws.com/test"
82+
});
83+
7284
var uploadRequest = new TransferUtilityUploadRequest
7385
{
7486
FilePath = _tempFilePath,

0 commit comments

Comments
 (0)