Skip to content

Commit 49c7696

Browse files
committed
nit
1 parent 910cdd5 commit 49c7696

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dbos/client_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ func TestGetWorkflowSteps(t *testing.T) {
942942
}
943943

944944
testWorkflow := func(ctx DBOSContext, input string) (string, error) {
945-
result, err := RunAsStep(ctx, stepFunction)
945+
result, err := RunAsStep(ctx, stepFunction, WithStepName("TestStep"))
946946
if err != nil {
947947
return "", err
948948
}
@@ -984,7 +984,7 @@ func TestGetWorkflowSteps(t *testing.T) {
984984

985985
step := stepsWithOutput[0]
986986
assert.Equal(t, 0, step.StepID, "expected step ID to be 0")
987-
assert.NotEmpty(t, step.StepName, "expected step name to be set")
987+
assert.Equal(t, "TestStep", step.StepName, "expected step name to be set")
988988
assert.Nil(t, step.Error, "expected no error in step")
989989
assert.Equal(t, "", step.ChildWorkflowID, "expected no child workflow ID")
990990

0 commit comments

Comments
 (0)