From fb3f2f9699c21ac123d63ca93c6b5e6380cfae92 Mon Sep 17 00:00:00 2001 From: Michael Snowden Date: Tue, 20 Dec 2022 12:16:32 -0800 Subject: [PATCH] Fix errcheck in service/frontend (#3733) --- service/frontend/workflow_handler_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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) }