File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
tests/GraphQL.Integration.Tests Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,6 @@ query Long {
171171 // unblock the query
172172 chatQuery . LongRunningQueryBlocker . Set ( ) ;
173173 // check execution time
174- request . Invoking ( ) . ExecutionTime ( ) . Should ( ) . BeLessThan ( 1000 . Milliseconds ( ) ) ;
175174 request . Invoke ( ) . Result . Data . longRunning . Should ( ) . Be ( "finally returned" ) ;
176175
177176 // reset stuff
@@ -182,8 +181,7 @@ query Long {
182181 request . Start ( ) ;
183182 chatQuery . WaitingOnQueryBlocker . Wait ( 1000 ) . Should ( ) . BeTrue ( "because the request should have reached the server by then" ) ;
184183 cts . Cancel ( ) ;
185- FluentActions . Awaiting ( ( ) => request . Invoking ( ) . Should ( ) . ThrowAsync < TaskCanceledException > ( "because the request was cancelled" ) )
186- . ExecutionTime ( ) . Should ( ) . BeLessThan ( 1000 . Milliseconds ( ) ) ;
184+ request . Invoking ( ) . Should ( ) . Throw < TaskCanceledException > ( "because the request was cancelled" ) ;
187185
188186 // let the server finish its query
189187 chatQuery . LongRunningQueryBlocker . Set ( ) ;
Original file line number Diff line number Diff line change @@ -80,7 +80,6 @@ query Long {
8080 // unblock the query
8181 chatQuery . LongRunningQueryBlocker . Set ( ) ;
8282 // check execution time
83- request . Invoking ( ) . ExecutionTime ( ) . Should ( ) . BeLessThan ( 1000 . Milliseconds ( ) ) ;
8483 request . Invoke ( ) . Result . Data . longRunning . Should ( ) . Be ( "finally returned" ) ;
8584
8685 // reset stuff
@@ -91,8 +90,7 @@ query Long {
9190 request . Start ( ) ;
9291 chatQuery . WaitingOnQueryBlocker . Wait ( 1000 ) . Should ( ) . BeTrue ( "because the request should have reached the server by then" ) ;
9392 cts . Cancel ( ) ;
94- FluentActions . Awaiting ( ( ) => request . Invoking ( ) . Should ( ) . ThrowAsync < TaskCanceledException > ( "because the request was cancelled" ) )
95- . ExecutionTime ( ) . Should ( ) . BeLessThan ( 1000 . Milliseconds ( ) ) ;
93+ request . Invoking ( ) . Should ( ) . Throw < TaskCanceledException > ( "because the request was cancelled" ) ;
9694
9795 // let the server finish its query
9896 chatQuery . LongRunningQueryBlocker . Set ( ) ;
You can’t perform that action at this time.
0 commit comments