@@ -128,11 +128,11 @@ func BackendTest(t *testing.T, setup func() TestBackend, teardown func(b TestBac
128
128
require .NotNil (t , tk )
129
129
130
130
// Complete workflow task
131
- err = b .CompleteWorkflowTask (ctx , tk , wfi , backend .WorkflowStateActive , tk .NewEvents , []history.Event {}, []history.WorkflowEvent {})
131
+ err = b .CompleteWorkflowTask (ctx , tk , wfi , backend .WorkflowStateActive , tk .NewEvents , []history.Event {}, []history.Event {}, []history. WorkflowEvent {})
132
132
require .NoError (t , err )
133
133
134
134
// Task is already completed, this should error
135
- err = b .CompleteWorkflowTask (ctx , tk , wfi , backend .WorkflowStateActive , tk .NewEvents , []history.Event {}, []history.WorkflowEvent {})
135
+ err = b .CompleteWorkflowTask (ctx , tk , wfi , backend .WorkflowStateActive , tk .NewEvents , []history.Event {}, []history.Event {}, []history. WorkflowEvent {})
136
136
require .Error (t , err )
137
137
},
138
138
},
@@ -171,7 +171,7 @@ func BackendTest(t *testing.T, setup func() TestBackend, teardown func(b TestBac
171
171
172
172
workflowEvents := []history.WorkflowEvent {}
173
173
174
- err = b .CompleteWorkflowTask (ctx , task , wfi , backend .WorkflowStateActive , events , activityEvents , workflowEvents )
174
+ err = b .CompleteWorkflowTask (ctx , task , wfi , backend .WorkflowStateActive , events , activityEvents , []history. Event {}, workflowEvents )
175
175
require .NoError (t , err )
176
176
177
177
time .Sleep (time .Second )
@@ -213,7 +213,7 @@ func BackendTest(t *testing.T, setup func() TestBackend, teardown func(b TestBac
213
213
events [i ].SequenceID = sequenceID
214
214
}
215
215
216
- err = b .CompleteWorkflowTask (ctx , task , wfi , backend .WorkflowStateFinished , events , []history.Event {}, []history.WorkflowEvent {})
216
+ err = b .CompleteWorkflowTask (ctx , task , wfi , backend .WorkflowStateFinished , events , []history.Event {}, []history.Event {}, []history. WorkflowEvent {})
217
217
require .NoError (t , err )
218
218
219
219
time .Sleep (time .Second )
@@ -278,7 +278,7 @@ func BackendTest(t *testing.T, setup func() TestBackend, teardown func(b TestBac
278
278
// Simulate context and sub-workflow cancellation
279
279
task , err := b .GetWorkflowTask (ctx )
280
280
require .NoError (t , err )
281
- err = b .CompleteWorkflowTask (ctx , task , instance , backend .WorkflowStateActive , task .NewEvents , []history.Event {}, []history.WorkflowEvent {
281
+ err = b .CompleteWorkflowTask (ctx , task , instance , backend .WorkflowStateActive , task .NewEvents , []history.Event {}, []history.Event {}, []history. WorkflowEvent {
282
282
{
283
283
WorkflowInstance : subInstance1 ,
284
284
HistoryEvent : history .NewHistoryEvent (1 , time .Now (), history .EventType_WorkflowExecutionCanceled , & history.SubWorkflowCancellationRequestedAttributes {
@@ -323,6 +323,6 @@ func startWorkflow(t *testing.T, ctx context.Context, b backend.Backend, c clien
323
323
task , err := b .GetWorkflowTask (ctx )
324
324
require .NoError (t , err )
325
325
326
- err = b .CompleteWorkflowTask (ctx , task , instance , backend .WorkflowStateActive , task .NewEvents , []history.Event {}, []history.WorkflowEvent {})
326
+ err = b .CompleteWorkflowTask (ctx , task , instance , backend .WorkflowStateActive , task .NewEvents , []history.Event {}, []history.Event {}, []history. WorkflowEvent {})
327
327
require .NoError (t , err )
328
328
}
0 commit comments