s3: fix versions tests when running on minio

This commit is contained in:
Nick Craig-Wood
2023-06-14 17:30:36 +01:00
parent 3faa84b47c
commit 000ddc4951
2 changed files with 9 additions and 3 deletions

View File

@@ -3051,6 +3051,7 @@ func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (fs.Fs, e
if err != nil {
return nil, err
}
fs.Debugf(nil, "name = %q, root = %q, opt = %#v", name, root, opt)
err = checkUploadChunkSize(opt.ChunkSize)
if err != nil {
return nil, fmt.Errorf("s3: chunk size: %w", err)