@@ -70,7 +70,7 @@ func (s *BackendTestSuite) Test_GetActivityTask_ReturnNilWhenTimeout() {
70
70
func (s * BackendTestSuite ) Test_CreateWorkflowInstance_DoesNotError () {
71
71
ctx := context .Background ()
72
72
73
- err := s .b .CreateWorkflowInstance (ctx , core .WorkflowEvent {
73
+ err := s .b .CreateWorkflowInstance (ctx , history .WorkflowEvent {
74
74
WorkflowInstance : core .NewWorkflowInstance (uuid .NewString (), uuid .NewString ()),
75
75
HistoryEvent : history .NewHistoryEvent (time .Now (), history .EventType_WorkflowExecutionStarted , & history.ExecutionStartedAttributes {}),
76
76
})
@@ -81,7 +81,7 @@ func (s *BackendTestSuite) Test_GetWorkflowTask_ReturnsTask() {
81
81
ctx := context .Background ()
82
82
83
83
wfi := core .NewWorkflowInstance (uuid .NewString (), uuid .NewString ())
84
- err := s .b .CreateWorkflowInstance (ctx , core .WorkflowEvent {
84
+ err := s .b .CreateWorkflowInstance (ctx , history .WorkflowEvent {
85
85
WorkflowInstance : wfi ,
86
86
HistoryEvent : history .NewHistoryEvent (time .Now (), history .EventType_WorkflowExecutionStarted , & history.ExecutionStartedAttributes {}),
87
87
})
@@ -98,7 +98,7 @@ func (s *BackendTestSuite) Test_GetWorkflowTask_LocksTask() {
98
98
ctx := context .Background ()
99
99
100
100
wfi := core .NewWorkflowInstance (uuid .NewString (), uuid .NewString ())
101
- err := s .b .CreateWorkflowInstance (ctx , core .WorkflowEvent {
101
+ err := s .b .CreateWorkflowInstance (ctx , history .WorkflowEvent {
102
102
WorkflowInstance : wfi ,
103
103
HistoryEvent : history .NewHistoryEvent (time .Now (), history .EventType_WorkflowExecutionStarted , & history.ExecutionStartedAttributes {}),
104
104
})
@@ -123,13 +123,13 @@ func (s *BackendTestSuite) Test_CompleteWorkflowTask_ReturnsErrorIfNotLocked() {
123
123
ctx := context .Background ()
124
124
125
125
wfi := core .NewWorkflowInstance (uuid .NewString (), uuid .NewString ())
126
- err := s .b .CreateWorkflowInstance (ctx , core .WorkflowEvent {
126
+ err := s .b .CreateWorkflowInstance (ctx , history .WorkflowEvent {
127
127
WorkflowInstance : wfi ,
128
128
HistoryEvent : history .NewHistoryEvent (time .Now (), history .EventType_WorkflowExecutionStarted , & history.ExecutionStartedAttributes {}),
129
129
})
130
130
s .NoError (err )
131
131
132
- err = s .b .CompleteWorkflowTask (ctx , wfi , []history.Event {}, []core .WorkflowEvent {})
132
+ err = s .b .CompleteWorkflowTask (ctx , wfi , []history.Event {}, []history .WorkflowEvent {})
133
133
134
134
s .Error (err )
135
135
}
@@ -142,7 +142,7 @@ func (s *BackendTestSuite) Test_CompleteWorkflowTask_AddsNewEventsToHistory() {
142
142
activityCompletedEvent := history .NewHistoryEvent (time .Now (), history .EventType_ActivityCompleted , & history.ActivityCompletedAttributes {}, history .ScheduleEventID (1 ))
143
143
144
144
wfi := core .NewWorkflowInstance (uuid .NewString (), uuid .NewString ())
145
- err := s .b .CreateWorkflowInstance (ctx , core .WorkflowEvent {
145
+ err := s .b .CreateWorkflowInstance (ctx , history .WorkflowEvent {
146
146
WorkflowInstance : wfi ,
147
147
HistoryEvent : startedEvent ,
148
148
})
@@ -160,7 +160,7 @@ func (s *BackendTestSuite) Test_CompleteWorkflowTask_AddsNewEventsToHistory() {
160
160
taskFinishedEvent ,
161
161
}
162
162
163
- workflowEvents := []core .WorkflowEvent {
163
+ workflowEvents := []history .WorkflowEvent {
164
164
{
165
165
WorkflowInstance : wfi ,
166
166
HistoryEvent : activityCompletedEvent ,
0 commit comments