From 277d669106cfe30e86c2b6fb51644d76710333c6 Mon Sep 17 00:00:00 2001 From: Luc Talatinian Date: Wed, 9 Oct 2024 10:46:45 -0400 Subject: [PATCH] fix busted s3manager test --- feature/s3/manager/integ_upload_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feature/s3/manager/integ_upload_test.go b/feature/s3/manager/integ_upload_test.go index 1226c547396..2b980fdc89c 100644 --- a/feature/s3/manager/integ_upload_test.go +++ b/feature/s3/manager/integ_upload_test.go @@ -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") }