Skip to content

Commit

Permalink
Remove unneeded duration/seconds conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
alexshtin committed May 12, 2023
1 parent e0db87d commit b913d67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions service/history/transferQueueActiveTaskExecutor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2638,10 +2638,10 @@ func (s *transferQueueActiveTaskExecutorSuite) createAddWorkflowTaskRequest(
Kind: enumspb.TASK_QUEUE_KIND_NORMAL,
}
executionInfo := mutableState.GetExecutionInfo()
timeout := timestamp.DurationValue(executionInfo.WorkflowRunTimeout)
timeout := executionInfo.WorkflowRunTimeout
if mutableState.GetExecutionInfo().TaskQueue != task.TaskQueue {
taskQueue.Kind = enumspb.TASK_QUEUE_KIND_STICKY
timeout = timestamp.DurationValue(executionInfo.StickyScheduleToStartTimeout)
timeout = executionInfo.StickyScheduleToStartTimeout
}

return &matchingservice.AddWorkflowTaskRequest{
Expand All @@ -2652,7 +2652,7 @@ func (s *transferQueueActiveTaskExecutorSuite) createAddWorkflowTaskRequest(
},
TaskQueue: taskQueue,
ScheduledEventId: task.ScheduledEventID,
ScheduleToStartTimeout: &timeout,
ScheduleToStartTimeout: timeout,
Clock: vclock.NewVectorClock(s.mockClusterMetadata.GetClusterID(), s.mockShard.GetShardID(), task.TaskID),
}
}
Expand Down

0 comments on commit b913d67

Please sign in to comment.