@@ -43,7 +43,7 @@ async fn new_krate() {
4343
4444#[ tokio:: test( flavor = "multi_thread" ) ]
4545async fn new_krate_with_token ( ) {
46- let ( app, _, _, token) = TestApp :: full ( ) . with_token ( ) ;
46+ let ( app, _, _, token) = TestApp :: full ( ) . with_token ( ) . await ;
4747
4848 let crate_to_publish = PublishBuilder :: new ( "foo_new" , "1.0.0" ) ;
4949 let response = token. publish_crate ( crate_to_publish) . await ;
@@ -64,7 +64,7 @@ async fn new_krate_with_token() {
6464
6565#[ tokio:: test( flavor = "multi_thread" ) ]
6666async fn new_krate_weird_version ( ) {
67- let ( app, _, _, token) = TestApp :: full ( ) . with_token ( ) ;
67+ let ( app, _, _, token) = TestApp :: full ( ) . with_token ( ) . await ;
6868
6969 let crate_to_publish = PublishBuilder :: new ( "foo_weird" , "0.0.0-pre" ) ;
7070 let response = token. publish_crate ( crate_to_publish) . await ;
@@ -85,7 +85,7 @@ async fn new_krate_weird_version() {
8585
8686#[ tokio:: test( flavor = "multi_thread" ) ]
8787async fn new_krate_twice ( ) {
88- let ( app, _, _, token) = TestApp :: full ( ) . with_token ( ) ;
88+ let ( app, _, _, token) = TestApp :: full ( ) . with_token ( ) . await ;
8989
9090 let crate_to_publish = PublishBuilder :: new ( "foo_twice" , "0.99.0" ) ;
9191 token. publish_crate ( crate_to_publish) . await . good ( ) ;
@@ -116,7 +116,7 @@ async fn new_krate_twice() {
116116// The primary purpose is to verify that the `default_version` we provide is as expected.
117117#[ tokio:: test( flavor = "multi_thread" ) ]
118118async fn new_krate_twice_alt ( ) {
119- let ( app, _, _, token) = TestApp :: full ( ) . with_token ( ) ;
119+ let ( app, _, _, token) = TestApp :: full ( ) . with_token ( ) . await ;
120120
121121 let crate_to_publish =
122122 PublishBuilder :: new ( "foo_twice" , "2.0.0" ) . description ( "2.0.0 description" ) ;
@@ -145,7 +145,7 @@ async fn new_krate_twice_alt() {
145145
146146#[ tokio:: test( flavor = "multi_thread" ) ]
147147async fn new_krate_duplicate_version ( ) {
148- let ( app, _, user, token) = TestApp :: full ( ) . with_token ( ) ;
148+ let ( app, _, user, token) = TestApp :: full ( ) . with_token ( ) . await ;
149149 let mut conn = app. db_conn ( ) ;
150150
151151 // Insert a crate directly into the database and then we'll try to publish the same version
0 commit comments