forked from TrueCloudLab/frostfs-s3-gw
[#210] Fix multipart object reader
Signed-off-by: Marina Biryukova <m.biryukova@yadro.com>
This commit is contained in:
parent
12cf29aed2
commit
a4c612614a
2 changed files with 23 additions and 6 deletions
|
@ -90,6 +90,16 @@ func TestMultiReader(t *testing.T) {
|
|||
off: parts[0].Size - 4,
|
||||
ln: parts[1].Size + 8,
|
||||
},
|
||||
{
|
||||
name: "second part",
|
||||
off: parts[0].Size,
|
||||
ln: parts[1].Size,
|
||||
},
|
||||
{
|
||||
name: "second and third",
|
||||
off: parts[0].Size,
|
||||
ln: parts[1].Size + parts[2].Size,
|
||||
},
|
||||
{
|
||||
name: "offset out of range",
|
||||
off: uint64(len(fullPayload) + 1),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue