mirror of
https://github.com/restic/rest-server.git
synced 2025-12-06 17:15:45 -08:00
Fix tests for: reply "insufficient storage" on disk full or over-quota
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user