Skip to content

Commit

Permalink
Rename operationID to token in TestWorkflowEnvironment (#1813)
Browse files Browse the repository at this point in the history
  • Loading branch information
bergundy authored Feb 11, 2025
1 parent 1540ba4 commit f29a8c5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/workflow_testsuite.go
Original file line number Diff line number Diff line change
Expand Up @@ -606,14 +606,14 @@ func (e *TestWorkflowEnvironment) OnUpsertMemo(attributes interface{}) *MockCall
// mock.Anything, // NexusOperationOptions
// ).Return(
// &nexus.HandlerStartOperationResultAsync{
// OperationID: "hello-operation-id",
// OperationToken: "hello-operation-token",
// },
// nil,
// )
// t.RegisterNexusAsyncOperationCompletion(
// "service-name",
// "hello-operation",
// "hello-operation-id",
// "hello-operation-token",
// HelloOutput{Message: "Hello Temporal"},
// nil,
// 1*time.Second,
Expand Down Expand Up @@ -694,15 +694,15 @@ func (e *TestWorkflowEnvironment) OnNexusOperation(
func (e *TestWorkflowEnvironment) RegisterNexusAsyncOperationCompletion(
service string,
operation string,
operationID string,
token string,
result any,
err error,
delay time.Duration,
) error {
return e.impl.RegisterNexusAsyncOperationCompletion(
service,
operation,
operationID,
token,
result,
err,
delay,
Expand Down

0 comments on commit f29a8c5

Please sign in to comment.