Skip to content

Commit cd41c30

Browse files
authored
Merge pull request #372 from decibelcooper/chore/update-workflow-tester-iface
chore(tester): add cancel workflow methods to WorkflowTester interface
2 parents 1d17cf8 + e3e7407 commit cd41c30

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tester/tester.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@ type WorkflowTester[TResult any] interface {
103103
// OnSubWorkflowByName registers a mock sub-workflow with the given name.
104104
OnSubWorkflowByName(name string, workflow workflow.Workflow, args ...interface{}) *mock.Call
105105

106+
// CancelWorkflow cancels the workflow under test.
107+
CancelWorkflow()
108+
109+
// CancelWorkflowInstance cancels the given workflow instance.
110+
CancelWorkflowInstance(wfi *core.WorkflowInstance) error
111+
106112
// SignalWorkflow signals the workflow under test with the given signal name and value.
107113
SignalWorkflow(signalName string, value interface{})
108114

0 commit comments

Comments
 (0)