File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
test/DurableTask.SqlServer.Tests/Integration Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -877,12 +877,16 @@ public async Task TerminateScheduledOrchestration()
877877 instanceId : null ,
878878 scheduledStartTime : DateTime . UtcNow . AddSeconds ( 30 ) ,
879879 implementation : ( ctx , input ) => Task . FromResult ( "done" ) ) ;
880+
881+ // Confirm that the orchestration is pending
882+ OrchestrationState state = await instance . GetStateAsync ( ) ;
883+ Assert . Equal ( OrchestrationStatus . Pending , state . OrchestrationStatus ) ;
880884
881885 // Terminate the orchestration before it starts
882886 await instance . TerminateAsync ( "Bye!" ) ;
883-
884- await instance . WaitForCompletion (
885- timeout : TimeSpan . FromSeconds ( 3 ) ,
887+
888+ // Confirm the orchestration was terminated
889+ await instance . WaitForCompletion (
886890 expectedStatus : OrchestrationStatus . Terminated ,
887891 expectedOutput : "Bye!" ) ;
888892
You can’t perform that action at this time.
0 commit comments