diff --git a/service/frontend/workflow_handler_test.go b/service/frontend/workflow_handler_test.go index f9370958b28..c686d35343f 100644 --- a/service/frontend/workflow_handler_test.go +++ b/service/frontend/workflow_handler_test.go @@ -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), @@ -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) }