@@ -99,7 +99,7 @@ func Test_Executor(t *testing.T) {
9999 time .Now (),
100100 history .EventType_WorkflowExecutionStarted ,
101101 & history.ExecutionStartedAttributes {
102- Name : fn .FuncName (workflowWithActivity ),
102+ Name : fn .Name (workflowWithActivity ),
103103 Inputs : []payload.Payload {},
104104 },
105105 ),
@@ -115,7 +115,7 @@ func Test_Executor(t *testing.T) {
115115 inputs , _ := converter .DefaultConverter .To (42 )
116116 require .IsType (t , & command.ScheduleActivityCommand {}, e .workflowState .Commands ()[0 ])
117117 require .Equal (t , command .CommandState_Committed , e .workflowState .Commands ()[0 ].State ())
118- require .Equal (t , "github.com/cschleiden/go-workflows/internal/workflow. activity1" , e .workflowState .Commands ()[0 ].(* command.ScheduleActivityCommand ).Name )
118+ require .Equal (t , "activity1" , e .workflowState .Commands ()[0 ].(* command.ScheduleActivityCommand ).Name )
119119 require .Equal (t , []payload.Payload {inputs }, e .workflowState .Commands ()[0 ].(* command.ScheduleActivityCommand ).Inputs )
120120 },
121121 },
@@ -151,7 +151,7 @@ func Test_Executor(t *testing.T) {
151151 time .Now (),
152152 history .EventType_WorkflowExecutionStarted ,
153153 & history.ExecutionStartedAttributes {
154- Name : fn .FuncName (workflowWithActivity ),
154+ Name : fn .Name (workflowWithActivity ),
155155 Inputs : []payload.Payload {},
156156 },
157157 ),
@@ -160,7 +160,7 @@ func Test_Executor(t *testing.T) {
160160 time .Now (),
161161 history .EventType_ActivityScheduled ,
162162 & history.ActivityScheduledAttributes {
163- Name : "github.com/cschleiden/go-workflows/internal/workflow. activity1" ,
163+ Name : "activity1" ,
164164 Inputs : []payload.Payload {inputs },
165165 },
166166 history .ScheduleEventID (1 ),
@@ -212,15 +212,15 @@ func Test_Executor(t *testing.T) {
212212 time .Now (),
213213 history .EventType_WorkflowExecutionStarted ,
214214 & history.ExecutionStartedAttributes {
215- Name : fn .FuncName (workflowWithActivity ),
215+ Name : fn .Name (workflowWithActivity ),
216216 Inputs : []payload.Payload {},
217217 },
218218 ),
219219 history .NewPendingEvent (
220220 time .Now (),
221221 history .EventType_ActivityScheduled ,
222222 & history.ActivityScheduledAttributes {
223- Name : "github.com/cschleiden/go-workflows/internal/workflow. activity1" ,
223+ Name : "activity1" ,
224224 Inputs : []payload.Payload {inputs },
225225 },
226226 history .ScheduleEventID (1 ),
@@ -305,7 +305,7 @@ func Test_Executor(t *testing.T) {
305305 time .Now (),
306306 history .EventType_WorkflowExecutionStarted ,
307307 & history.ExecutionStartedAttributes {
308- Name : fn .FuncName (workflowWithSelector ),
308+ Name : fn .Name (workflowWithSelector ),
309309 Inputs : []payload.Payload {},
310310 },
311311 ),
@@ -351,7 +351,7 @@ func Test_Executor(t *testing.T) {
351351 time .Now (),
352352 history .EventType_WorkflowExecutionStarted ,
353353 & history.ExecutionStartedAttributes {
354- Name : fn .FuncName (workflowWithTimer ),
354+ Name : fn .Name (workflowWithTimer ),
355355 Inputs : []payload.Payload {},
356356 },
357357 ),
@@ -432,7 +432,7 @@ func Test_Executor(t *testing.T) {
432432 time .Now (),
433433 history .EventType_WorkflowExecutionStarted ,
434434 & history.ExecutionStartedAttributes {
435- Name : fn .FuncName (workflowWithSignal ),
435+ Name : fn .Name (workflowWithSignal ),
436436 Inputs : []payload.Payload {},
437437 },
438438 ),
@@ -473,7 +473,7 @@ func Test_Executor(t *testing.T) {
473473 time .Now (),
474474 history .EventType_WorkflowExecutionStarted ,
475475 & history.ExecutionStartedAttributes {
476- Name : fn .FuncName (workflowPanic ),
476+ Name : fn .Name (workflowPanic ),
477477 Inputs : []payload.Payload {},
478478 },
479479 ),
@@ -613,7 +613,7 @@ func startWorkflowTask(instanceID string, workflow interface{}, workflowArgs ...
613613 time .Now (),
614614 history .EventType_WorkflowExecutionStarted ,
615615 & history.ExecutionStartedAttributes {
616- Name : fn .FuncName (workflow ),
616+ Name : fn .Name (workflow ),
617617 Inputs : inputs ,
618618 },
619619 ),
0 commit comments