File tree Expand file tree Collapse file tree 1 file changed +8
-15
lines changed Expand file tree Collapse file tree 1 file changed +8
-15
lines changed Original file line number Diff line number Diff line change @@ -207,22 +207,15 @@ mod supergraph_e2e_tests {
207207 mock1. assert ( ) ;
208208
209209 let app_clone = test_app. app . clone ( ) ;
210- let resp_handle = ntex:: rt:: spawn ( async move {
211- let response = test:: call_service (
212- & app_clone. clone ( ) ,
213- init_graphql_request ( "{ users { id name reviews { id body } } }" , None )
214- . to_request ( ) ,
215- )
216- . await ;
217- assert ! ( response. status( ) . is_success( ) , "Expected 200 OK" ) ;
218- let body = test:: read_body ( response) . await ;
219- let json_body: Value = from_slice ( & body) . unwrap ( ) ;
220-
221- json_body
222- } ) ;
210+ let response = test:: call_service (
211+ & app_clone. clone ( ) ,
212+ init_graphql_request ( "{ users { id name reviews { id body } } }" , None ) . to_request ( ) ,
213+ )
214+ . await ;
215+ assert ! ( response. status( ) . is_success( ) , "Expected 200 OK" ) ;
216+ let body = test:: read_body ( response) . await ;
217+ let resp: Value = from_slice ( & body) . unwrap ( ) ;
223218
224- ntex:: time:: sleep ( Duration :: from_millis ( 100 ) ) . await ;
225- let resp = resp_handle. await . unwrap ( ) ;
226219 mock2. assert ( ) ;
227220
228221 assert ! ( resp[ "data" ] . is_object( ) ) ;
You can’t perform that action at this time.
0 commit comments