mem: stricter handling of out of bounds requests
This commit is contained in:
parent
d40f23e716
commit
cfc420664a
2 changed files with 9 additions and 4 deletions
|
@ -96,7 +96,7 @@ func TestDry(t *testing.T) {
|
|||
}
|
||||
case "load":
|
||||
data := ""
|
||||
err = step.be.Load(ctx, handle, 100, 0, func(rd io.Reader) error {
|
||||
err = step.be.Load(ctx, handle, 0, 0, func(rd io.Reader) error {
|
||||
buf, err := io.ReadAll(rd)
|
||||
data = string(buf)
|
||||
return err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue