mirror of https://github.com/fafhrd91/actix-web
chore(awc): json test should use proper method
This commit is contained in:
parent
612e983576
commit
605bcd18c6
|
@ -62,10 +62,11 @@ async fn json() {
|
||||||
});
|
});
|
||||||
|
|
||||||
let request = srv
|
let request = srv
|
||||||
.get("/")
|
.post("/")
|
||||||
.insert_header(("x-test", "111"))
|
.insert_header(("x-test", "111"))
|
||||||
.send_json(&"TEST".to_string());
|
.send_json(&"TEST".to_string());
|
||||||
let response = request.await.unwrap();
|
let response = request.await.unwrap();
|
||||||
|
println!("{response:?}");
|
||||||
assert!(response.status().is_success());
|
assert!(response.status().is_success());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue