@@ -65,8 +65,9 @@ async fn owner_change_via_token() {
6565
6666#[ tokio:: test( flavor = "multi_thread" ) ]
6767async fn owner_change_via_change_owner_token ( ) {
68- let ( app, _, _, token) =
69- TestApp :: full ( ) . with_scoped_token ( None , Some ( vec ! [ EndpointScope :: ChangeOwners ] ) ) ;
68+ let ( app, _, _, token) = TestApp :: full ( )
69+ . with_scoped_token ( None , Some ( vec ! [ EndpointScope :: ChangeOwners ] ) )
70+ . await ;
7071
7172 let mut conn = app. db_conn ( ) ;
7273
@@ -84,7 +85,9 @@ async fn owner_change_via_change_owner_token() {
8485async fn owner_change_via_change_owner_token_with_matching_crate_scope ( ) {
8586 let crate_scopes = Some ( vec ! [ CrateScope :: try_from( "foo_crate" ) . unwrap( ) ] ) ;
8687 let endpoint_scopes = Some ( vec ! [ EndpointScope :: ChangeOwners ] ) ;
87- let ( app, _, _, token) = TestApp :: full ( ) . with_scoped_token ( crate_scopes, endpoint_scopes) ;
88+ let ( app, _, _, token) = TestApp :: full ( )
89+ . with_scoped_token ( crate_scopes, endpoint_scopes)
90+ . await ;
8891 let mut conn = app. db_conn ( ) ;
8992
9093 let user2 = app. db_new_user ( "user-2" ) ;
@@ -101,7 +104,9 @@ async fn owner_change_via_change_owner_token_with_matching_crate_scope() {
101104async fn owner_change_via_change_owner_token_with_wrong_crate_scope ( ) {
102105 let crate_scopes = Some ( vec ! [ CrateScope :: try_from( "bar" ) . unwrap( ) ] ) ;
103106 let endpoint_scopes = Some ( vec ! [ EndpointScope :: ChangeOwners ] ) ;
104- let ( app, _, _, token) = TestApp :: full ( ) . with_scoped_token ( crate_scopes, endpoint_scopes) ;
107+ let ( app, _, _, token) = TestApp :: full ( )
108+ . with_scoped_token ( crate_scopes, endpoint_scopes)
109+ . await ;
105110 let mut conn = app. db_conn ( ) ;
106111
107112 let user2 = app. db_new_user ( "user-2" ) ;
@@ -116,8 +121,9 @@ async fn owner_change_via_change_owner_token_with_wrong_crate_scope() {
116121
117122#[ tokio:: test( flavor = "multi_thread" ) ]
118123async fn owner_change_via_publish_token ( ) {
119- let ( app, _, _, token) =
120- TestApp :: full ( ) . with_scoped_token ( None , Some ( vec ! [ EndpointScope :: PublishUpdate ] ) ) ;
124+ let ( app, _, _, token) = TestApp :: full ( )
125+ . with_scoped_token ( None , Some ( vec ! [ EndpointScope :: PublishUpdate ] ) )
126+ . await ;
121127
122128 let mut conn = app. db_conn ( ) ;
123129
0 commit comments