@@ -517,13 +517,13 @@ mod tests {
517517 graphql_handler ( & schema, & context, req, payload) . await
518518 }
519519
520- #[ actix_rt :: test]
520+ #[ actix_web :: rt :: test]
521521 async fn graphiql_response_does_not_panic ( ) {
522522 let result = graphiql_handler ( "/abcd" , None ) . await ;
523523 assert ! ( result. is_ok( ) )
524524 }
525525
526- #[ actix_rt :: test]
526+ #[ actix_web :: rt :: test]
527527 async fn graphiql_endpoint_matches ( ) {
528528 async fn graphql_handler ( ) -> Result < HttpResponse , Error > {
529529 graphiql_handler ( "/abcd" , None ) . await
@@ -539,7 +539,7 @@ mod tests {
539539 assert_eq ! ( resp. status( ) , http:: StatusCode :: OK ) ;
540540 }
541541
542- #[ actix_rt :: test]
542+ #[ actix_web :: rt :: test]
543543 async fn graphiql_endpoint_returns_graphiql_source ( ) {
544544 async fn graphql_handler ( ) -> Result < HttpResponse , Error > {
545545 graphiql_handler ( "/dogs-api/graphql" , Some ( "/dogs-api/subscriptions" ) ) . await
@@ -564,7 +564,7 @@ mod tests {
564564 ) )
565565 }
566566
567- #[ actix_rt :: test]
567+ #[ actix_web :: rt :: test]
568568 async fn playground_endpoint_matches ( ) {
569569 async fn graphql_handler ( ) -> Result < HttpResponse , Error > {
570570 playground_handler ( "/abcd" , None ) . await
@@ -580,7 +580,7 @@ mod tests {
580580 assert_eq ! ( resp. status( ) , http:: StatusCode :: OK ) ;
581581 }
582582
583- #[ actix_rt :: test]
583+ #[ actix_web :: rt :: test]
584584 async fn playground_endpoint_returns_playground_source ( ) {
585585 async fn graphql_handler ( ) -> Result < HttpResponse , Error > {
586586 playground_handler ( "/dogs-api/graphql" , Some ( "/dogs-api/subscriptions" ) ) . await
@@ -602,7 +602,7 @@ mod tests {
602602 assert ! ( body. contains( "GraphQLPlayground.init(root, { endpoint: '/dogs-api/graphql', subscriptionEndpoint: '/dogs-api/subscriptions' })" ) ) ;
603603 }
604604
605- #[ actix_rt :: test]
605+ #[ actix_web :: rt :: test]
606606 async fn graphql_post_works_json_post ( ) {
607607 let schema: Schema = RootNode :: new (
608608 Query ,
@@ -634,7 +634,7 @@ mod tests {
634634 ) ;
635635 }
636636
637- #[ actix_rt :: test]
637+ #[ actix_web :: rt :: test]
638638 async fn graphql_get_works ( ) {
639639 let schema: Schema = RootNode :: new (
640640 Query ,
@@ -663,7 +663,7 @@ mod tests {
663663 ) ;
664664 }
665665
666- #[ actix_rt :: test]
666+ #[ actix_web :: rt :: test]
667667 async fn batch_request_works ( ) {
668668 use juniper:: {
669669 tests:: fixtures:: starwars:: { model:: Database , schema:: Query } ,
@@ -715,7 +715,7 @@ mod tests {
715715
716716 impl TestActixWebIntegration {
717717 fn make_request ( & self , req : test:: TestRequest ) -> TestResponse {
718- actix_rt :: System :: new ( "request" ) . block_on ( async move {
718+ actix_web :: rt :: System :: new ( "request" ) . block_on ( async move {
719719 let schema = RootNode :: new (
720720 Query ,
721721 EmptyMutation :: < Database > :: new ( ) ,
@@ -877,7 +877,7 @@ mod subscription_tests {
877877 subscriptions_handler ( req, stream, schema, config) . await
878878 }
879879
880- #[ actix_rt :: test]
880+ #[ actix_web :: rt :: test]
881881 async fn test_actix_ws_integration ( ) {
882882 run_ws_test_suite ( & mut TestActixWsIntegration :: default ( ) ) . await ;
883883 }
0 commit comments