@@ -235,10 +235,6 @@ func Test_Executor(t *testing.T) {
235235 require .False (t , e .workflow .Completed ())
236236 require .Len (t , e .workflowState .Commands (), 1 )
237237
238- h := []* history.Event {}
239- h = append (h , oldTask .NewEvents ... )
240- h = append (h , taskResult .Executed ... )
241-
242238 newTask := & backend.WorkflowTask {
243239 ID : "taskID" ,
244240 WorkflowInstance : oldTask .WorkflowInstance ,
@@ -399,7 +395,7 @@ func Test_Executor(t *testing.T) {
399395 history .NewPendingEvent (time .Now (), history .EventType_ActivityCompleted , & history.ActivityCompletedAttributes {}, history .ScheduleEventID (2 )),
400396 }, result .Executed [len (result .Executed )- 1 ].SequenceID )
401397
402- result , err = e .ExecuteTask (context .Background (), task2 )
398+ _ , err = e .ExecuteTask (context .Background (), task2 )
403399 require .NoError (t , err )
404400 require .Nil (t , e .workflow .err )
405401 },
@@ -573,7 +569,7 @@ func Test_Executor(t *testing.T) {
573569 // Complete subworkflow
574570 swr , _ := converter .DefaultConverter .To (nil )
575571 hp .history = append (hp .history , result .Executed ... )
576- result , err = e .ExecuteTask (context .Background (), continueTask ("instanceID" , []* history.Event {
572+ _ , err = e .ExecuteTask (context .Background (), continueTask ("instanceID" , []* history.Event {
577573 history .NewPendingEvent (time .Now (), history .EventType_SubWorkflowCompleted , & history.SubWorkflowCompletedAttributes {
578574 Result : swr ,
579575 }, history .ScheduleEventID (1 )),
0 commit comments