Skip to content

Commit 1a3fd84

Browse files
authored
Merge branch 'main' into feat/tester-with-initial-time
2 parents a6f8167 + cd41c30 commit 1a3fd84

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)