Skip to content

Commit 0a9ece7

Browse files
committed
Remove unused TestRun endpoint and update activity execution logic
Eliminated the TestRun endpoint and related functionality from the API. Enhanced activity execution by leveraging pre-serialized snapshots and refactored mapping operations to use asynchronous methods. Also updated package versions to align with the latest dependencies.
1 parent 931d242 commit 0a9ece7

File tree

2 files changed

+1
-81
lines changed

2 files changed

+1
-81
lines changed

src/modules/Elsa.Workflows.Api/Endpoints/Activities/TestRun/Endpoint.cs

Lines changed: 0 additions & 80 deletions
This file was deleted.

src/modules/Elsa.Workflows.Api/Endpoints/Tests/Activities/Endpoint.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public override async Task HandleAsync(Request request, CancellationToken cancel
5151
}
5252

5353
var activityExecutionContext = await activityTestRunner.RunAsync(workflowGraph, activity, cancellationToken);
54-
var record = activityExecutionMapper.Map(activityExecutionContext);
54+
var record = await activityExecutionMapper.MapAsync(activityExecutionContext);
5555
var activityState = record.ActivityState ?? new Dictionary<string, object?>();
5656

5757
var response = new Response

0 commit comments

Comments
 (0)