Merge pull request #3229 from xiang90/f_cerr
client: return context.Canceled error when user cancels the request
This commit is contained in:
@ -364,7 +364,7 @@ func TestHTTPClusterClientDo(t *testing.T) {
|
||||
),
|
||||
rand: rand.New(rand.NewSource(0)),
|
||||
},
|
||||
wantErr: &ClusterError{Errors: []error{context.Canceled}},
|
||||
wantErr: context.Canceled,
|
||||
},
|
||||
|
||||
// return err if there are no endpoints
|
||||
|
Reference in New Issue
Block a user