Skip to content

Commit b7ef33d

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 b7ef33d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/WorkflowCore.IntegrationTests/Scenarios/SubWorkflowScenario.cs

Lines changed: 3 additions & 2 deletions
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
@@ -131,7 +132,7 @@ public void Failure()
131132
WaitForEventSubscription("Approved", workflowId, TimeSpan.FromSeconds(5));
132133
UnhandledStepErrors.Should().BeEmpty();
133134

134-
Host.PublishEvent("Approved", workflowId, new
135+
Host.PublishEvent("Approved", eventKey, new
135136
{
136137
Approved = "string"
137138
});

0 commit comments

Comments
 (0)