diff --git a/etcdserver/api/rafthttp/fake_roundtripper_test.go b/etcdserver/api/rafthttp/fake_roundtripper_test.go index 4e17dee81..c29173d3e 100644 --- a/etcdserver/api/rafthttp/fake_roundtripper_test.go +++ b/etcdserver/api/rafthttp/fake_roundtripper_test.go @@ -28,8 +28,6 @@ func (t *roundTripperBlocker) RoundTrip(req *http.Request) (*http.Response, erro select { case <-t.unblockc: return &http.Response{StatusCode: http.StatusNoContent, Body: &nopReadCloser{}}, nil - case <-req.Cancel: - return nil, errors.New("request canceled") case <-ctx.Done(): return nil, errors.New("request canceled") case <-c: