Merge pull request #160 from Enrico204/reply-with-insufficient-storage-on-disk-full

Reply "insufficient storage" on disk full or over-quota
This commit is contained in:
MichaelEischer
2021-09-07 21:28:07 +02:00
committed by GitHub
4 changed files with 39 additions and 5 deletions

View File

@@ -4,7 +4,6 @@ import (
"bytes"
"crypto/rand"
"encoding/hex"
"errors"
"fmt"
"io"
"io/ioutil"
@@ -398,7 +397,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() {