File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -299,16 +299,7 @@ func (wt *workflowTester[TResult]) Execute(args ...interface{}) {
299
299
}
300
300
}
301
301
302
- // Schedule activities
303
- for _ , event := range result .ActivityEvents {
304
- gotNewEvents = true
305
-
306
- a := event .Attributes .(* history.ActivityScheduledAttributes )
307
- wt .logger .Debug ("Activity event" , "activity" , a .Name )
308
-
309
- wt .scheduleActivity (tw .instance , event )
310
- }
311
-
302
+ // Schedule sub-workflows and handle x-workflow events
312
303
for _ , workflowEvent := range result .WorkflowEvents {
313
304
gotNewEvents = true
314
305
wt .logger .Debug ("Workflow event" , "event_type" , workflowEvent .HistoryEvent .Type )
@@ -322,6 +313,17 @@ func (wt *workflowTester[TResult]) Execute(args ...interface{}) {
322
313
}
323
314
}
324
315
316
+ // Schedule activities
317
+ for _ , event := range result .ActivityEvents {
318
+ gotNewEvents = true
319
+
320
+ a := event .Attributes .(* history.ActivityScheduledAttributes )
321
+ wt .logger .Debug ("Activity event" , "activity" , a .Name )
322
+
323
+ wt .scheduleActivity (tw .instance , event )
324
+ }
325
+
326
+ // Schedule timers
325
327
for _ , timerEvent := range result .TimerEvents {
326
328
gotNewEvents = true
327
329
wt .logger .Debug ("Timer event" , "event_type" , timerEvent .Type )
You can’t perform that action at this time.
0 commit comments