From e8b441443863d4bdd9ec4b2ddaf8042ddd9abca6 Mon Sep 17 00:00:00 2001 From: Quanzheng Long Date: Fri, 8 Nov 2024 10:40:52 -0800 Subject: [PATCH] fix test flakyness --- integ/workflow_uncompleted_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integ/workflow_uncompleted_test.go b/integ/workflow_uncompleted_test.go index d1a94e7..836cc0d 100644 --- a/integ/workflow_uncompleted_test.go +++ b/integ/workflow_uncompleted_test.go @@ -112,8 +112,8 @@ func TestStateApiTimeoutWorkflow(t *testing.T) { fmt.Println(err) - expectedMsg := "workflow is not completed successfully, closedStatus: FAILED, failedErrorType(applies if failed as closedStatus):STATE_API_FAIL_MAX_OUT_RETRY_ERROR_TYPE, error message:activity error (type: StateApiWaitUntil, scheduledEventID: 8, startedEventID: 9, identity: ): activity StartToClose timeout (type: StartToClose)" - assert.Equal(t, expectedMsg, err.Error()) + expectedMsg := "workflow is not completed successfully, closedStatus: FAILED, failedErrorType(applies if failed as closedStatus):STATE_API_FAIL_MAX_OUT_RETRY_ERROR_TYPE, error message:activity error " + assert.True(t, strings.HasPrefix(err.Error(), expectedMsg)) out, err2 := client.GetComplexWorkflowResults(context.Background(), wfId, "") assert.Nil(t, out)