Fix tests for: reply "insufficient storage" on disk full or over-quota

This commit is contained in:
Enrico204
2021-09-06 22:13:33 +02:00
parent 9b31f17188
commit fb5d63435a
2 changed files with 19 additions and 5 deletions

View File

@@ -5,7 +5,6 @@ import (
"crypto/rand"
"crypto/sha256"
"encoding/hex"
"errors"
"fmt"
"io"
"io/ioutil"
@@ -397,7 +396,7 @@ func TestAbortedRequest(t *testing.T) {
// the first request is an upload to a file which blocks while reading the
// body and then after some data returns an error
rd := newDelayedErrorReader(errors.New("injected"))
rd := newDelayedErrorReader(io.ErrUnexpectedEOF)
wg.Add(1)
go func() {