diff --git a/esti/multipart_test.go b/esti/multipart_test.go index e96d5af06d2..645235d060d 100644 --- a/esti/multipart_test.go +++ b/esti/multipart_test.go @@ -166,7 +166,7 @@ func reverse(s string) string { return string(runes) } -func uploadMultipartParts(t *testing.T, ctx context.Context, client *s3.Client, logger logging.Logger, resp *s3.CreateMultipartUploadOutput, parts [][]byte, firstIndex int) []types.CompletedPart { +func uploadMultipartParts(t *testing.T, ctx context.Context, svc *s3.Client, logger logging.Logger, resp *s3.CreateMultipartUploadOutput, parts [][]byte, firstIndex int) []types.CompletedPart { count := len(parts) completedParts := make([]types.CompletedPart, count) errs := make([]error, count) @@ -176,7 +176,7 @@ func uploadMultipartParts(t *testing.T, ctx context.Context, client *s3.Client, go func(i int) { defer wg.Done() partNumber := firstIndex + i + 1 - completedParts[i], errs[i] = uploadMultipartPart(ctx, logger, client, resp, parts[i], partNumber) + completedParts[i], errs[i] = uploadMultipartPart(ctx, logger, svc, resp, parts[i], partNumber) }(i) } wg.Wait()