fs/fserrors: Add test for error from #1964

This commit is contained in:
Nick Craig-Wood 2018-01-19 17:06:49 +00:00
parent 8e86a902e2
commit ee66419a27

View File

@ -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",