From 707c39655fbc5ad7d31b7d18becb33ea8aca2558 Mon Sep 17 00:00:00 2001 From: Mindaugas Barcauskas Date: Fri, 2 Dec 2022 16:00:24 +0200 Subject: [PATCH] code style. --- test/integration_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/integration_test.go b/test/integration_test.go index 21ad1392d..38dc6c736 100644 --- a/test/integration_test.go +++ b/test/integration_test.go @@ -422,7 +422,7 @@ func (ts *IntegrationTestSuite) TestChildWFWithParentClosePolicyTerminate() { resp, err := ts.libClient.DescribeWorkflowExecution(context.Background(), childWorkflowID, "") ts.NoError(err) // Need to wait for child workflow to finish as well otherwise test becomes flaky - err = ts.waitForWorkflowFinish(resp.WorkflowExecutionInfo.Execution.GetWorkflowId(), resp.WorkflowExecutionInfo.Execution.GetRunId()) + ts.waitForWorkflowFinish(resp.WorkflowExecutionInfo.Execution.GetWorkflowId(), resp.WorkflowExecutionInfo.Execution.GetRunId()) resp, err = ts.libClient.DescribeWorkflowExecution(context.Background(), childWorkflowID, "") ts.NoError(err) ts.True(resp.WorkflowExecutionInfo.GetCloseTime() > 0) @@ -591,8 +591,7 @@ func (ts *IntegrationTestSuite) waitForWorkflowFinish(wid string, runId string) defer cancel() wfRun := ts.libClient.GetWorkflow(ctx, wid, runId) var val interface{} - err := wfRun.Get(ctx, &val) - return err + return wfRun.Get(ctx, &val) } var _ interceptors.WorkflowInterceptorFactory = (*tracingInterceptorFactory)(nil)