Skip to content

Commit 7fbdb9f

Browse files
authored
Test CHASM in NexusWorkflowTestSuite (#9873)
## What changed? Change `NexusWorkflowTestSuite` to test both HSM and CHASM impls. ## Why? Ensure CHASM impl correctness. ## How did you test it? - [ ] built - [ ] run locally and tested manually - [x] covered by existing tests - [ ] added new unit test(s) - [ ] added new functional test(s)
1 parent 634fa80 commit 7fbdb9f

3 files changed

Lines changed: 159 additions & 79 deletions

File tree

chasm/lib/workflow/workflow.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ func (w *Workflow) ContextMetadata(_ chasm.Context) map[string]string {
6363
return nil
6464
}
6565

66+
func (w *Workflow) Terminate(
67+
_ chasm.MutableContext,
68+
_ chasm.TerminateComponentRequest,
69+
) (chasm.TerminateComponentResponse, error) {
70+
return chasm.TerminateComponentResponse{}, nil
71+
}
72+
6673
// ProcessCloseCallbacks triggers "WorkflowClosed" callbacks using the CHASM implementation.
6774
// It iterates through all callbacks and schedules WorkflowClosed ones that are in STANDBY state.
6875
func (w *Workflow) ProcessCloseCallbacks(ctx chasm.MutableContext) error {

0 commit comments

Comments
 (0)