Skip to content

Commit

Permalink
Renamed SetContinuedAsNewRunID to SetContinuedExecutionRunID
Browse files Browse the repository at this point in the history
Let's be consistent with the workflow info field name.

Co-authored-by: Chad Retz <chad.retz@gmail.com>
  • Loading branch information
lminaudier and cretz committed Sep 22, 2023
1 parent 341f533 commit 3b84267
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion internal/internal_workflow_testsuite.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ func (env *testWorkflowEnvironmentImpl) setContinueAsNewSuggested(suggest bool)
env.workflowInfo.continueAsNewSuggested = suggest
}

func (env *testWorkflowEnvironmentImpl) setContinuedExecutionID(rid string) {
func (env *testWorkflowEnvironmentImpl) setContinuedExecutionRunID(rid string) {
env.workflowInfo.ContinuedExecutionRunID = rid
}

Expand Down
2 changes: 1 addition & 1 deletion internal/internal_workflow_testsuite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3749,7 +3749,7 @@ func (s *WorkflowTestSuiteUnitTest) Test_SetWorkerStopChannel() {

func (s *WorkflowTestSuiteUnitTest) Test_SetContinuedExecutionRunID() {
env := newTestWorkflowEnvironmentImpl(&s.WorkflowTestSuite, nil)
env.setContinuedExecutionID("some-run-id")
env.setContinuedExecutionRunID("some-run-id")
s.NotNil(env.workflowInfo.ContinuedExecutionRunID)
}

Expand Down
6 changes: 3 additions & 3 deletions internal/workflow_testsuite.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,10 @@ func (e *TestWorkflowEnvironment) SetContinueAsNewSuggested(suggest bool) {
e.impl.setContinueAsNewSuggested(suggest)
}

// SetContinuedExecutionID sets the value that is returned from
// SetContinuedExecutionRunID sets the value that is returned from
// GetInfo(ctx).ContinuedExecutionRunID
func (e *TestWorkflowEnvironment) SetContinuedAsNewRunID(rid string) {
e.impl.setContinuedExecutionID(rid)
func (e *TestWorkflowEnvironment) SetContinuedExecutionRunID(rid string) {
e.impl.setContinuedExecutionRunID(rid)
}

// OnActivity setup a mock call for activity. Parameter activity must be activity function (func) or activity name (string).
Expand Down

0 comments on commit 3b84267

Please sign in to comment.