Skip to content

Commit 3b74528

Browse files
author
Sophia Tevosyan
committed
trying another test format
1 parent 293cb57 commit 3b74528

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

test/DurableTask.SqlServer.Tests/Integration/Orchestrations.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)