mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-29 08:48:02 -05:00
address bugbot comments and fix tests
This commit is contained in:
@@ -198,6 +198,7 @@ describe('WorkflowBlockHandler', () => {
|
||||
|
||||
expect(result).toEqual({
|
||||
success: true,
|
||||
childWorkflowId: 'child-id',
|
||||
childWorkflowName: 'Child Workflow',
|
||||
result: { data: 'test result' },
|
||||
childTraceSpans: [],
|
||||
@@ -235,6 +236,7 @@ describe('WorkflowBlockHandler', () => {
|
||||
|
||||
expect(result).toEqual({
|
||||
success: true,
|
||||
childWorkflowId: 'child-id',
|
||||
childWorkflowName: 'Child Workflow',
|
||||
result: { nested: 'data' },
|
||||
childTraceSpans: [],
|
||||
|
||||
@@ -536,6 +536,7 @@ export class WorkflowBlockHandler implements BlockHandler {
|
||||
message: `"${childWorkflowName}" failed: ${childResult.error || 'Child workflow execution failed'}`,
|
||||
childWorkflowName,
|
||||
childTraceSpans: childTraceSpans || [],
|
||||
childWorkflowSnapshotId,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -543,7 +544,7 @@ export class WorkflowBlockHandler implements BlockHandler {
|
||||
success: true,
|
||||
childWorkflowName,
|
||||
childWorkflowId,
|
||||
childWorkflowSnapshotId,
|
||||
...(childWorkflowSnapshotId ? { childWorkflowSnapshotId } : {}),
|
||||
result,
|
||||
childTraceSpans: childTraceSpans || [],
|
||||
} as Record<string, any>
|
||||
|
||||
Reference in New Issue
Block a user