mirror of
https://github.com/actix/actix-web.git
synced 2024-11-23 18:11:11 +00:00
update test
This commit is contained in:
parent
0567e6fb0a
commit
18f3841783
1 changed files with 1 additions and 2 deletions
|
@ -740,12 +740,11 @@ mod tests {
|
|||
#[test]
|
||||
fn test_basic_builder() {
|
||||
let resp = HttpResponse::Ok()
|
||||
.status(StatusCode::NO_CONTENT)
|
||||
.header("X-TEST", "value")
|
||||
.version(Version::HTTP_10)
|
||||
.finish().unwrap();
|
||||
assert_eq!(resp.version(), Some(Version::HTTP_10));
|
||||
assert_eq!(resp.status(), StatusCode::NO_CONTENT);
|
||||
assert_eq!(resp.status(), StatusCode::OK);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Reference in a new issue