forked from TrueCloudLab/xk6-frostfs
fail if concurrencty < 1
Signed-off-by: Мария Малыгина <m.malygina@yadro.com>
This commit is contained in:
parent
fb7bc09e79
commit
edc6e31223
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ func (c *Client) Multipart(bucket, key string, objPartSize int, payload goja.Arr
|
|||
stats.Report(c.vu, objPutFails, 1)
|
||||
return PutResponse{Success: false, Error: fmt.Sprintf("part size '%d' must be greater than '%d'(5 MB)", objPartSize, multipartUploadMinPartSize)}
|
||||
}
|
||||
if concurrency == 0 {
|
||||
if concurrency < 1 {
|
||||
stats.Report(c.vu, objPutFails, 1)
|
||||
return PutResponse{Success: false, Error: fmt.Sprintf("number of parts to upload in parallel must be greater than 0")}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue