diff options
author | René Kijewski <kijewski@library.vetmed.fu-berlin.de> | 2022-01-05 11:38:36 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2022-01-05 13:57:53 +0100 |
commit | 783073b4fbc8bb974b04467b821c15e88d3c970e (patch) | |
tree | 722a24b76f50757b99ebc6dc0bf6faeedbb83f57 /askama_actix/tests/basic.rs | |
parent | 2f8bdba17c5602d5f19330fcb7db474c9f2b1662 (diff) | |
download | askama-783073b4fbc8bb974b04467b821c15e88d3c970e.tar.gz askama-783073b4fbc8bb974b04467b821c15e88d3c970e.tar.bz2 askama-783073b4fbc8bb974b04467b821c15e88d3c970e.zip |
Update for actix-web beta
Diffstat (limited to '')
-rw-r--r-- | askama_actix/tests/basic.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/askama_actix/tests/basic.rs b/askama_actix/tests/basic.rs index c540076..070cbf6 100644 --- a/askama_actix/tests/basic.rs +++ b/askama_actix/tests/basic.rs @@ -11,7 +11,7 @@ struct HelloTemplate<'a> { #[actix_rt::test] async fn test_actix_web() { - let srv = actix_web::test::start(|| { + let srv = actix_test::start(|| { actix_web::App::new() .service(web::resource("/").to(|| async { HelloTemplate { name: "world" } })) }); @@ -30,10 +30,10 @@ async fn test_actix_web() { #[actix_rt::test] async fn test_actix_web_responder() { - let srv = actix_web::test::start(|| { + let srv = actix_test::start(|| { actix_web::App::new().service(web::resource("/").to(|| async { let name = "world".to_owned(); - HelloTemplate { name: &name }.to_response() + HelloTemplate { name: &name }.to_response().await })) }); |