chore(awc): json test should use proper method

This commit is contained in:
imgurbot12 2025-07-30 21:08:46 -07:00
parent 612e983576
commit 605bcd18c6
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -62,10 +62,11 @@ async fn json() {
});
let request = srv
.get("/")
.post("/")
.insert_header(("x-test", "111"))
.send_json(&"TEST".to_string());
let response = request.await.unwrap();
println!("{response:?}");
assert!(response.status().is_success());
}