Skip to content

Commit

Permalink
Fix errcheck in service/frontend (#3733)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelSnowden authored Dec 20, 2022
1 parent e57edab commit fb3f2f9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions service/frontend/workflow_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,8 @@ func (s *workflowHandlerSuite) TestStartWorkflowExecution_EnsureNonNilRetryPolic
RetryPolicy: &commonpb.RetryPolicy{},
RequestId: uuid.New(),
}
wh.StartWorkflowExecution(context.Background(), startWorkflowExecutionRequest)
_, err := wh.StartWorkflowExecution(context.Background(), startWorkflowExecutionRequest)
s.Error(err)
s.Equal(&commonpb.RetryPolicy{
BackoffCoefficient: 2.0,
InitialInterval: timestamp.DurationPtr(time.Second),
Expand All @@ -615,7 +616,8 @@ func (s *workflowHandlerSuite) TestStartWorkflowExecution_EnsureNilRetryPolicyNo
WorkflowRunTimeout: timestamp.DurationPtr(time.Duration(-1) * time.Second),
RequestId: uuid.New(),
}
wh.StartWorkflowExecution(context.Background(), startWorkflowExecutionRequest)
_, err := wh.StartWorkflowExecution(context.Background(), startWorkflowExecutionRequest)
s.Error(err)
s.Nil(startWorkflowExecutionRequest.RetryPolicy)
}

Expand Down

0 comments on commit fb3f2f9

Please sign in to comment.