File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 40
40
- name : Tests
41
41
run : |
42
42
go install github.com/jstemmer/go-junit-report/v2@latest
43
- go test -race -count 1 -v ./... 2>&1 | go-junit-report -set-exit-code -iocopy -out "${{ github.workspace }}/report.xml"
43
+ go test -timeout 120s - race -count 1 -v ./... 2>&1 | go-junit-report -set-exit-code -iocopy -out "${{ github.workspace }}/report.xml"
44
44
45
45
46
46
- name : Test Summary
Original file line number Diff line number Diff line change @@ -558,7 +558,7 @@ func (wt *workflowTester[TResult]) scheduleTimer(instance *core.WorkflowInstance
558
558
559
559
func (wt * workflowTester [TResult ]) cancelTimer (instance * core.WorkflowInstance , event history.Event ) {
560
560
for i , t := range wt .timers {
561
- if t .Instance .InstanceID == instance .InstanceID && t .ScheduleEventID == event .ScheduleEventID {
561
+ if t .Instance != nil && t . Instance .InstanceID == instance .InstanceID && t .ScheduleEventID == event .ScheduleEventID {
562
562
wt .timers = append (wt .timers [:i ], wt .timers [i + 1 :]... )
563
563
break
564
564
}
You can’t perform that action at this time.
0 commit comments