forked from TrueCloudLab/xk6-frostfs
Fix body value
Signed-off-by: Мария Малыгина <m.malygina@yadro.com>
This commit is contained in:
parent
00df55340a
commit
88ae8f47a3
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ func (c *Client) Multipart(bucket, key string, objPartSize int, payload goja.Arr
|
|||
result, err := uploader.Upload(context.TODO(), &s3.PutObjectInput{
|
||||
Bucket: aws.String(bucket),
|
||||
Key: aws.String(key),
|
||||
Body: payload.Bytes(),
|
||||
Body: bytes.NewReader(payload.Bytes()),
|
||||
})
|
||||
if err != nil {
|
||||
stats.Report(c.vu, objPutFails, 1)
|
||||
|
|
Loading…
Reference in a new issue