@@ -9,7 +9,7 @@ static URL: &str = "/api/v1/me/updates";
99
1010#[ tokio:: test( flavor = "multi_thread" ) ]
1111async fn anonymous_user_unauthorized ( ) {
12- let ( _, anon) = TestApp :: init ( ) . empty ( ) ;
12+ let ( _, anon) = TestApp :: init ( ) . empty ( ) . await ;
1313 let response: Response < ( ) > = anon. get ( URL ) . await ;
1414
1515 assert_eq ! ( response. status( ) , StatusCode :: FORBIDDEN ) ;
@@ -18,7 +18,7 @@ async fn anonymous_user_unauthorized() {
1818
1919#[ tokio:: test( flavor = "multi_thread" ) ]
2020async fn token_auth_cannot_find_token ( ) {
21- let ( _, anon) = TestApp :: init ( ) . empty ( ) ;
21+ let ( _, anon) = TestApp :: init ( ) . empty ( ) . await ;
2222 let mut request = anon. request_builder ( Method :: GET , URL ) ;
2323 request. header ( header:: AUTHORIZATION , "cio1tkfake-token" ) ;
2424 let response: Response < ( ) > = anon. run ( request) . await ;
@@ -32,7 +32,7 @@ async fn token_auth_cannot_find_token() {
3232// the database, it is not possible to implement this same test for a token.
3333#[ tokio:: test( flavor = "multi_thread" ) ]
3434async fn cookie_auth_cannot_find_user ( ) {
35- let ( app, anon) = TestApp :: init ( ) . empty ( ) ;
35+ let ( app, anon) = TestApp :: init ( ) . empty ( ) . await ;
3636
3737 let session_key = app. as_inner ( ) . session_key ( ) ;
3838 let cookie = encode_session_header ( session_key, -1 ) ;
0 commit comments