fs/fserrors: Add test for error from #1964
This commit is contained in:
parent
8e86a902e2
commit
ee66419a27
1 changed files with 1 additions and 0 deletions
|
@ -96,6 +96,7 @@ func TestShouldRetry(t *testing.T) {
|
|||
{makeNetErr(syscall.Errno(123123123)), false},
|
||||
{&url.Error{Op: "post", URL: "/", Err: io.EOF}, true},
|
||||
{&url.Error{Op: "post", URL: "/", Err: errUseOfClosedNetworkConnection}, true},
|
||||
{&url.Error{Op: "post", URL: "/", Err: fmt.Errorf("net/http: HTTP/1.x transport connection broken: %v", fmt.Errorf("http: ContentLength=%d with Body length %d", 100663336, 99590598))}, true},
|
||||
{
|
||||
errors.Wrap(&url.Error{
|
||||
Op: "post",
|
||||
|
|
Loading…
Reference in a new issue