Skip to content

Commit 4acfc95

Browse files
committed
emitting the event with the correct id - sub workflow is waiting for an approved event, the key is the id from the input - i.e. the thing user has under control
1 parent de2a6d5 commit 4acfc95

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/WorkflowCore.IntegrationTests/Scenarios/SubWorkflowScenario.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ public void Scenario(bool approved)
9595
WaitForEventSubscription("Approved", workflowId, TimeSpan.FromSeconds(5));
9696
UnhandledStepErrors.Should().BeEmpty();
9797

98-
Host.PublishEvent("Approved", workflowId, new
98+
// sub workflow is waiting for an approved event, the key is the id from the input
99+
Host.PublishEvent("Approved", eventKey, new
99100
{
100101
Approved = approved,
101102
Message = "message " + approved

0 commit comments

Comments
 (0)