Skip to content

Commit a81d3a6

Browse files
committed
Remove unused vars
1 parent 297234f commit a81d3a6

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

internal/workflow/executor_test.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)