Skip to content

Commit

Permalink
fix busted s3manager test
Browse files Browse the repository at this point in the history
  • Loading branch information
lucix-aws committed Oct 9, 2024
1 parent e95c770 commit 277d669
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion feature/s3/manager/integ_upload_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ func (b *invalidateHash) RegisterMiddleware(stack *middleware.Stack) error {
func (b *invalidateHash) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
if input, ok := in.Parameters.(*s3.UploadPartInput); ok && input.PartNumber == aws.Int32(2) {
if input, ok := in.Parameters.(*s3.UploadPartInput); ok && aws.ToInt32(input.PartNumber) == 2 {
ctx = v4.SetPayloadHash(ctx, "000")
}

Expand Down

0 comments on commit 277d669

Please sign in to comment.