We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6034491 commit eafe9f4Copy full SHA for eafe9f4
tester/tester.go
@@ -558,7 +558,7 @@ func (wt *workflowTester[TResult]) scheduleTimer(instance *core.WorkflowInstance
558
559
func (wt *workflowTester[TResult]) cancelTimer(instance *core.WorkflowInstance, event history.Event) {
560
for i, t := range wt.timers {
561
- if t.Instance.InstanceID == instance.InstanceID && t.ScheduleEventID == event.ScheduleEventID {
+ if t.Instance != nil && t.Instance.InstanceID == instance.InstanceID && t.ScheduleEventID == event.ScheduleEventID {
562
wt.timers = append(wt.timers[:i], wt.timers[i+1:]...)
563
break
564
}
0 commit comments