Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ferglor committed Jan 28, 2025
1 parent 25619c7 commit 56caa43
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/workflows/sdk/testutils/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ func (r *Runner) Err() error {
}

func (r *Runner) ensureGraph(spec sdk.WorkflowSpec) error {
// BuildDependencyGraph expects non-aliased types as inputs in order to be able to generate the graph correctly.
// Serialize and deserialize the workflow to automatically convert the Spec to a supported format.
proto, err := wasmpb.WorkflowSpecToProto(&spec)
if err != nil {
return err
Expand Down

0 comments on commit 56caa43

Please sign in to comment.