@@ -99,7 +99,7 @@ func Test_Executor(t *testing.T) {
99
99
time .Now (),
100
100
history .EventType_WorkflowExecutionStarted ,
101
101
& history.ExecutionStartedAttributes {
102
- Name : fn .FuncName (workflowWithActivity ),
102
+ Name : fn .Name (workflowWithActivity ),
103
103
Inputs : []payload.Payload {},
104
104
},
105
105
),
@@ -115,7 +115,7 @@ func Test_Executor(t *testing.T) {
115
115
inputs , _ := converter .DefaultConverter .To (42 )
116
116
require .IsType (t , & command.ScheduleActivityCommand {}, e .workflowState .Commands ()[0 ])
117
117
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 )
119
119
require .Equal (t , []payload.Payload {inputs }, e .workflowState .Commands ()[0 ].(* command.ScheduleActivityCommand ).Inputs )
120
120
},
121
121
},
@@ -151,7 +151,7 @@ func Test_Executor(t *testing.T) {
151
151
time .Now (),
152
152
history .EventType_WorkflowExecutionStarted ,
153
153
& history.ExecutionStartedAttributes {
154
- Name : fn .FuncName (workflowWithActivity ),
154
+ Name : fn .Name (workflowWithActivity ),
155
155
Inputs : []payload.Payload {},
156
156
},
157
157
),
@@ -160,7 +160,7 @@ func Test_Executor(t *testing.T) {
160
160
time .Now (),
161
161
history .EventType_ActivityScheduled ,
162
162
& history.ActivityScheduledAttributes {
163
- Name : "github.com/cschleiden/go-workflows/internal/workflow. activity1" ,
163
+ Name : "activity1" ,
164
164
Inputs : []payload.Payload {inputs },
165
165
},
166
166
history .ScheduleEventID (1 ),
@@ -212,15 +212,15 @@ func Test_Executor(t *testing.T) {
212
212
time .Now (),
213
213
history .EventType_WorkflowExecutionStarted ,
214
214
& history.ExecutionStartedAttributes {
215
- Name : fn .FuncName (workflowWithActivity ),
215
+ Name : fn .Name (workflowWithActivity ),
216
216
Inputs : []payload.Payload {},
217
217
},
218
218
),
219
219
history .NewPendingEvent (
220
220
time .Now (),
221
221
history .EventType_ActivityScheduled ,
222
222
& history.ActivityScheduledAttributes {
223
- Name : "github.com/cschleiden/go-workflows/internal/workflow. activity1" ,
223
+ Name : "activity1" ,
224
224
Inputs : []payload.Payload {inputs },
225
225
},
226
226
history .ScheduleEventID (1 ),
@@ -305,7 +305,7 @@ func Test_Executor(t *testing.T) {
305
305
time .Now (),
306
306
history .EventType_WorkflowExecutionStarted ,
307
307
& history.ExecutionStartedAttributes {
308
- Name : fn .FuncName (workflowWithSelector ),
308
+ Name : fn .Name (workflowWithSelector ),
309
309
Inputs : []payload.Payload {},
310
310
},
311
311
),
@@ -351,7 +351,7 @@ func Test_Executor(t *testing.T) {
351
351
time .Now (),
352
352
history .EventType_WorkflowExecutionStarted ,
353
353
& history.ExecutionStartedAttributes {
354
- Name : fn .FuncName (workflowWithTimer ),
354
+ Name : fn .Name (workflowWithTimer ),
355
355
Inputs : []payload.Payload {},
356
356
},
357
357
),
@@ -432,7 +432,7 @@ func Test_Executor(t *testing.T) {
432
432
time .Now (),
433
433
history .EventType_WorkflowExecutionStarted ,
434
434
& history.ExecutionStartedAttributes {
435
- Name : fn .FuncName (workflowWithSignal ),
435
+ Name : fn .Name (workflowWithSignal ),
436
436
Inputs : []payload.Payload {},
437
437
},
438
438
),
@@ -473,7 +473,7 @@ func Test_Executor(t *testing.T) {
473
473
time .Now (),
474
474
history .EventType_WorkflowExecutionStarted ,
475
475
& history.ExecutionStartedAttributes {
476
- Name : fn .FuncName (workflowPanic ),
476
+ Name : fn .Name (workflowPanic ),
477
477
Inputs : []payload.Payload {},
478
478
},
479
479
),
@@ -613,7 +613,7 @@ func startWorkflowTask(instanceID string, workflow interface{}, workflowArgs ...
613
613
time .Now (),
614
614
history .EventType_WorkflowExecutionStarted ,
615
615
& history.ExecutionStartedAttributes {
616
- Name : fn .FuncName (workflow ),
616
+ Name : fn .Name (workflow ),
617
617
Inputs : inputs ,
618
618
},
619
619
),
0 commit comments