Update README and enhance ScheduleActivityExecutionContextTests with cancellation token

This commit is contained in:
Sipke Schoorstra 2025-06-23 11:26:34 +02:00
parent e8cd3cded5
commit 1361138443
No known key found for this signature in database
GPG key ID: 5C10502B28A4268F
2 changed files with 2 additions and 2 deletions

View file

@ -1,4 +1,4 @@
# ELSA 3.0
# ELSA 3
![Elsa Workflows](./design/artwork/elsa-v3-avatar.png)

View file

@ -21,7 +21,7 @@ public class ScheduleActivityExecutionContextTests(ITestOutputHelper testOutputH
};
var workflowGraphBuilder = _serviceProvider.GetRequiredService<IWorkflowGraphBuilder>();
var workflowGraph = await workflowGraphBuilder.BuildAsync(workflow);
var workflowExecutionContext = await WorkflowExecutionContext.CreateAsync(_serviceProvider, workflowGraph, "test");
var workflowExecutionContext = await WorkflowExecutionContext.CreateAsync(_serviceProvider, workflowGraph, "test", CancellationToken.None);
var activityExecutionContext = await workflowExecutionContext.CreateActivityExecutionContextAsync(writeLineA);
await Assert.ThrowsAsync<InvalidOperationException>(() => activityExecutionContext.ScheduleActivityAsync(writeLineB).AsTask());