Skip to content

Commit bc9f67d

Browse files
committed
net/http: wrap client errors followup
1 parent 67d30fc commit bc9f67d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net/http/client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2139,7 +2139,7 @@ func testClientTimeoutReturnsContextDeadlineExceeded(t *testing.T, mode testMode
21392139
w.WriteHeader(200)
21402140
}))
21412141
// check that, upon exceeding Client.Timeout, the returned error is context.DeadlineExceeded.
2142-
cst.c.Timeout = 1 * time.Millisecond
2142+
cst.c.Timeout = 5 * time.Millisecond
21432143
req, _ := NewRequest("GET", cst.ts.URL, nil)
21442144
_, err := cst.c.Do(req)
21452145
if !errors.Is(err, context.DeadlineExceeded) {

0 commit comments

Comments
 (0)