diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2021-12-21 23:17:14 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2022-01-04 21:30:15 +0100 |
commit | 42d80ad6cdb1a4ff9ff8fcc088b25d5f7b66a393 (patch) | |
tree | 7faca2dc4d177a109e4c7849a1c1f5f24af72999 /askama_actix/tests | |
parent | 6c8c0d63065608ca079110fe20721b7c4d8594f8 (diff) | |
download | askama-42d80ad6cdb1a4ff9ff8fcc088b25d5f7b66a393.tar.gz askama-42d80ad6cdb1a4ff9ff8fcc088b25d5f7b66a393.tar.bz2 askama-42d80ad6cdb1a4ff9ff8fcc088b25d5f7b66a393.zip |
askama_actix: revert to actix-web v3 for release
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 070cbf6..c540076 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_test::start(|| { + let srv = actix_web::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_test::start(|| { + let srv = actix_web::test::start(|| { actix_web::App::new().service(web::resource("/").to(|| async { let name = "world".to_owned(); - HelloTemplate { name: &name }.to_response().await + HelloTemplate { name: &name }.to_response() })) }); |