test(web/error): validate TimeoutError::Service status_code

This commit is contained in:
msga-mmm 2024-05-04 17:04:49 -05:00
parent 33490cd360
commit 02b5857dc5

View file

@ -712,6 +712,12 @@ mod tests {
);
assert_eq!(resp.status(), StatusCode::GATEWAY_TIMEOUT);
let resp = WebResponseError::<DefaultError>::error_response(
&TimeoutError::<UrlencodedError>::Service(UrlencodedError::Chunked),
&req,
);
assert_eq!(resp.status(), StatusCode::BAD_REQUEST);
let resp = WebResponseError::<DefaultError>::error_response(
&SendRequestError::Connect(ConnectError::Timeout),
&req,