Skip to content

Commit

Permalink
fix test flakyness
Browse files Browse the repository at this point in the history
  • Loading branch information
longquanzheng committed Nov 8, 2024
1 parent ce29dca commit e8b4414
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integ/workflow_uncompleted_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e8b4414

Please sign in to comment.