File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -550,7 +550,7 @@ func withWorkflowName(name string) WorkflowOption {
550550}
551551
552552// Sets the authenticated user for the workflow
553- func WithAutheticatedUser (user string ) WorkflowOption {
553+ func WithAuthenticatedUser (user string ) WorkflowOption {
554554 return func (p * workflowOptions ) {
555555 p .authenticated_user = user
556556 }
Original file line number Diff line number Diff line change @@ -4133,12 +4133,13 @@ func TestSpecialSteps(t *testing.T) {
41334133}
41344134func TestWorkflowIdentity (t * testing.T ) {
41354135 dbosCtx := setupDBOS (t , true , true )
4136+ RegisterWorkflow (dbosCtx , simpleWorkflow )
41364137 handle , err := RunWorkflow (
41374138 dbosCtx ,
41384139 simpleWorkflow ,
41394140 "test" ,
41404141 WithWorkflowID ("my-workflow-id" ),
4141- WithAutheticatedUser ("user123" ),
4142+ WithAuthenticatedUser ("user123" ),
41424143 WithAssumedRole ("admin" ),
41434144 WithAuthenticatedRoles ([]string {"reader" , "writer" }))
41444145 require .NoError (t , err , "failed to start workflow" )
You can’t perform that action at this time.
0 commit comments