@@ -262,22 +262,22 @@ func TestAdminServer(t *testing.T) {
262262
263263 // Create workflows with different input/output types
264264 // 1. Integer workflow
265- intHandle , err := RunAsWorkflow (ctx , intWorkflow , 42 )
265+ intHandle , err := RunWorkflow (ctx , intWorkflow , 42 )
266266 require .NoError (t , err , "Failed to create int workflow" )
267267 intResult , err := intHandle .GetResult ()
268268 require .NoError (t , err , "Failed to get int workflow result" )
269269 assert .Equal (t , 84 , intResult )
270270
271271 // 2. Empty string workflow
272- emptyStringHandle , err := RunAsWorkflow (ctx , emptyStringWorkflow , "" )
272+ emptyStringHandle , err := RunWorkflow (ctx , emptyStringWorkflow , "" )
273273 require .NoError (t , err , "Failed to create empty string workflow" )
274274 emptyStringResult , err := emptyStringHandle .GetResult ()
275275 require .NoError (t , err , "Failed to get empty string workflow result" )
276276 assert .Equal (t , "" , emptyStringResult )
277277
278278 // 3. Struct workflow
279279 structInput := TestStruct {Name : "test" , Value : 10 }
280- structHandle , err := RunAsWorkflow (ctx , structWorkflow , structInput )
280+ structHandle , err := RunWorkflow (ctx , structWorkflow , structInput )
281281 require .NoError (t , err , "Failed to create struct workflow" )
282282 structResult , err := structHandle .GetResult ()
283283 require .NoError (t , err , "Failed to get struct workflow result" )
@@ -385,7 +385,7 @@ func TestAdminServer(t *testing.T) {
385385 endpoint := fmt .Sprintf ("http://localhost:3001/%s" , strings .TrimPrefix (_WORKFLOWS_PATTERN , "POST /" ))
386386
387387 // Create first workflow
388- handle1 , err := RunAsWorkflow (ctx , testWorkflow , "workflow1" )
388+ handle1 , err := RunWorkflow (ctx , testWorkflow , "workflow1" )
389389 require .NoError (t , err , "Failed to create first workflow" )
390390 workflowID1 := handle1 .GetWorkflowID ()
391391
@@ -399,7 +399,7 @@ func TestAdminServer(t *testing.T) {
399399 time .Sleep (500 * time .Millisecond )
400400
401401 // Create second workflow
402- handle2 , err := RunAsWorkflow (ctx , testWorkflow , "workflow2" )
402+ handle2 , err := RunWorkflow (ctx , testWorkflow , "workflow2" )
403403 require .NoError (t , err , "Failed to create second workflow" )
404404 result2 , err := handle2 .GetResult ()
405405 require .NoError (t , err , "Failed to get second workflow result" )
0 commit comments