We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 95f99e9 + 60314a4 commit 32131e1Copy full SHA for 32131e1
test/WorkflowCore.IntegrationTests/Scenarios/MiddlewareScenario.cs
@@ -136,6 +136,12 @@ public async Task Should_run_all_workflow_and_step_middleware()
136
// Workflow should complete without errors
137
status.Should().Be(WorkflowStatus.Complete);
138
UnhandledStepErrors.Count.Should().Be(0);
139
+
140
+ // Wait for post middleware to complete
141
+ while (_workflowMiddleware.Any(x => !x.HasCompleted))
142
+ {
143
+ await Task.Delay(500);
144
+ }
145
146
// Each middleware should have run
147
_workflowMiddleware.Should()
0 commit comments