@@ -555,7 +555,7 @@ func (t *TaskHandlersTestSuite) TestCacheEvictionWhenErrorOccurs() {
555
555
task := createWorkflowTask (testEvents , 3 , "HelloWorld_Workflow" )
556
556
// newWorkflowTaskWorkerInternal will set the laTunnel in taskHandler, without it, ProcessWorkflowTask()
557
557
// will fail as it can't find laTunnel in getWorkflowCache().
558
- newWorkflowTaskWorkerInternal (taskHandler , t .service , testDomain , params , make (chan struct {}))
558
+ newWorkflowTaskWorkerInternal (taskHandler , t .service , testDomain , params , make (chan struct {}), nil )
559
559
request , err := taskHandler .ProcessWorkflowTask (& workflowTask {task : task }, nil )
560
560
561
561
t .Error (err )
@@ -588,7 +588,7 @@ func (t *TaskHandlersTestSuite) TestWithMissingHistoryEvents() {
588
588
task := createWorkflowTask (testEvents , startEventID , "HelloWorld_Workflow" )
589
589
// newWorkflowTaskWorkerInternal will set the laTunnel in taskHandler, without it, ProcessWorkflowTask()
590
590
// will fail as it can't find laTunnel in getWorkflowCache().
591
- newWorkflowTaskWorkerInternal (taskHandler , t .service , testDomain , params , make (chan struct {}))
591
+ newWorkflowTaskWorkerInternal (taskHandler , t .service , testDomain , params , make (chan struct {}), nil )
592
592
request , err := taskHandler .ProcessWorkflowTask (& workflowTask {task : task }, nil )
593
593
594
594
t .Error (err )
@@ -640,7 +640,7 @@ func (t *TaskHandlersTestSuite) TestWithTruncatedHistory() {
640
640
task .StartedEventId = common .Int64Ptr (tc .startedEventID )
641
641
// newWorkflowTaskWorkerInternal will set the laTunnel in taskHandler, without it, ProcessWorkflowTask()
642
642
// will fail as it can't find laTunnel in getWorkflowCache().
643
- newWorkflowTaskWorkerInternal (taskHandler , t .service , testDomain , params , make (chan struct {}))
643
+ newWorkflowTaskWorkerInternal (taskHandler , t .service , testDomain , params , make (chan struct {}), nil )
644
644
request , err := taskHandler .ProcessWorkflowTask (& workflowTask {task : task }, nil )
645
645
646
646
if tc .isResultErr {
@@ -754,7 +754,7 @@ func (t *TaskHandlersTestSuite) TestWorkflowTask_NondeterministicDetection() {
754
754
task = createWorkflowTask (testEvents , 3 , "HelloWorld_Workflow" )
755
755
// newWorkflowTaskWorkerInternal will set the laTunnel in taskHandler, without it, ProcessWorkflowTask()
756
756
// will fail as it can't find laTunnel in getWorkflowCache().
757
- newWorkflowTaskWorkerInternal (taskHandler , t .service , testDomain , params , stopC )
757
+ newWorkflowTaskWorkerInternal (taskHandler , t .service , testDomain , params , stopC , nil )
758
758
request , err = taskHandler .ProcessWorkflowTask (& workflowTask {task : task }, nil )
759
759
t .Error (err )
760
760
t .Nil (request )
@@ -927,7 +927,7 @@ func (t *TaskHandlersTestSuite) TestConsistentQuery_InvalidQueryTask() {
927
927
task := createWorkflowTask (nil , 3 , "HelloWorld_Workflow" )
928
928
task .Query = & s.WorkflowQuery {}
929
929
task .Queries = map [string ]* s.WorkflowQuery {"query_id" : {}}
930
- newWorkflowTaskWorkerInternal (taskHandler , t .service , testDomain , params , make (chan struct {}))
930
+ newWorkflowTaskWorkerInternal (taskHandler , t .service , testDomain , params , make (chan struct {}), nil )
931
931
// query and queries are both specified so this is an invalid task
932
932
request , err := taskHandler .ProcessWorkflowTask (& workflowTask {task : task }, nil )
933
933
0 commit comments