forked from TrueCloudLab/xk6-frostfs
fail test if concurrency = 0
Signed-off-by: Мария Малыгина <m.malygina@yadro.com>
This commit is contained in:
parent
ad5698c255
commit
fb7bc09e79
1 changed files with 4 additions and 0 deletions
|
@ -79,6 +79,10 @@ 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 {
|
||||
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")}
|
||||
}
|
||||
start := time.Now()
|
||||
uploader := manager.NewUploader(c.cli, func(u *manager.Uploader) {
|
||||
u.PartSize = int64(objPartSize)
|
||||
|
|
Loading…
Reference in a new issue