Skip to content

Commit 7edf2ca

Browse files
committed
Fix: Update
1 parent 4f56129 commit 7edf2ca

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

dbos/workflow.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

dbos/workflows_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4133,12 +4133,13 @@ func TestSpecialSteps(t *testing.T) {
41334133
}
41344134
func 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")

0 commit comments

Comments
 (0)