@@ -235,10 +235,6 @@ func Test_Executor(t *testing.T) {
235
235
require .False (t , e .workflow .Completed ())
236
236
require .Len (t , e .workflowState .Commands (), 1 )
237
237
238
- h := []* history.Event {}
239
- h = append (h , oldTask .NewEvents ... )
240
- h = append (h , taskResult .Executed ... )
241
-
242
238
newTask := & backend.WorkflowTask {
243
239
ID : "taskID" ,
244
240
WorkflowInstance : oldTask .WorkflowInstance ,
@@ -399,7 +395,7 @@ func Test_Executor(t *testing.T) {
399
395
history .NewPendingEvent (time .Now (), history .EventType_ActivityCompleted , & history.ActivityCompletedAttributes {}, history .ScheduleEventID (2 )),
400
396
}, result .Executed [len (result .Executed )- 1 ].SequenceID )
401
397
402
- result , err = e .ExecuteTask (context .Background (), task2 )
398
+ _ , err = e .ExecuteTask (context .Background (), task2 )
403
399
require .NoError (t , err )
404
400
require .Nil (t , e .workflow .err )
405
401
},
@@ -573,7 +569,7 @@ func Test_Executor(t *testing.T) {
573
569
// Complete subworkflow
574
570
swr , _ := converter .DefaultConverter .To (nil )
575
571
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 {
577
573
history .NewPendingEvent (time .Now (), history .EventType_SubWorkflowCompleted , & history.SubWorkflowCompletedAttributes {
578
574
Result : swr ,
579
575
}, history .ScheduleEventID (1 )),
0 commit comments