@@ -15,7 +15,7 @@ func close(wg *sync.WaitGroup, cancelFn context.CancelFunc) {
15
15
wg .Wait ()
16
16
}
17
17
func TestDefaultEventProcessor_ProcessImpression (t * testing.T ) {
18
- exeCtx := utils .NewCancelableExecutionCtxExecutionCtx ()
18
+ exeCtx := utils .NewCancelableExecutionCtx ()
19
19
processor := NewEventProcessor (exeCtx , 10 , 100 , 100 )
20
20
21
21
impression := BuildTestImpressionEvent ()
@@ -41,7 +41,7 @@ func (f *MockDispatcher) DispatchEvent(event LogEvent) (bool, error) {
41
41
}
42
42
43
43
func TestDefaultEventProcessor_ProcessBatch (t * testing.T ) {
44
- exeCtx := utils .NewCancelableExecutionCtxExecutionCtx ()
44
+ exeCtx := utils .NewCancelableExecutionCtx ()
45
45
processor := & QueueingEventProcessor {
46
46
MaxQueueSize : 100 ,
47
47
FlushInterval : 100 ,
@@ -78,7 +78,7 @@ func TestDefaultEventProcessor_ProcessBatch(t *testing.T) {
78
78
}
79
79
80
80
func TestBatchEventProcessor_FlushesOnClose (t * testing.T ) {
81
- exeCtx := utils .NewCancelableExecutionCtxExecutionCtx ()
81
+ exeCtx := utils .NewCancelableExecutionCtx ()
82
82
processor := & QueueingEventProcessor {
83
83
MaxQueueSize : 100 ,
84
84
FlushInterval : 30 * time .Second ,
@@ -106,7 +106,7 @@ func TestBatchEventProcessor_FlushesOnClose(t *testing.T) {
106
106
}
107
107
108
108
func TestDefaultEventProcessor_ProcessBatchRevisionMismatch (t * testing.T ) {
109
- exeCtx := utils .NewCancelableExecutionCtxExecutionCtx ()
109
+ exeCtx := utils .NewCancelableExecutionCtx ()
110
110
processor := & QueueingEventProcessor {
111
111
MaxQueueSize : 100 ,
112
112
FlushInterval : 100 ,
@@ -144,7 +144,7 @@ func TestDefaultEventProcessor_ProcessBatchRevisionMismatch(t *testing.T) {
144
144
}
145
145
146
146
func TestDefaultEventProcessor_ProcessBatchProjectMismatch (t * testing.T ) {
147
- exeCtx := utils .NewCancelableExecutionCtxExecutionCtx ()
147
+ exeCtx := utils .NewCancelableExecutionCtx ()
148
148
processor := & QueueingEventProcessor {
149
149
MaxQueueSize : 100 ,
150
150
FlushInterval : 100 ,
@@ -182,7 +182,7 @@ func TestDefaultEventProcessor_ProcessBatchProjectMismatch(t *testing.T) {
182
182
}
183
183
184
184
func TestChanQueueEventProcessor_ProcessImpression (t * testing.T ) {
185
- exeCtx := utils .NewCancelableExecutionCtxExecutionCtx ()
185
+ exeCtx := utils .NewCancelableExecutionCtx ()
186
186
processor := & QueueingEventProcessor {
187
187
MaxQueueSize : 100 ,
188
188
FlushInterval : 100 ,
@@ -206,7 +206,7 @@ func TestChanQueueEventProcessor_ProcessImpression(t *testing.T) {
206
206
}
207
207
208
208
func TestChanQueueEventProcessor_ProcessBatch (t * testing.T ) {
209
- exeCtx := utils .NewCancelableExecutionCtxExecutionCtx ()
209
+ exeCtx := utils .NewCancelableExecutionCtx ()
210
210
processor := & QueueingEventProcessor {MaxQueueSize : 100 , FlushInterval : 100 , Q : NewChanQueue (100 ), EventDispatcher : & MockDispatcher {}, wg : exeCtx .GetWaitSync ()}
211
211
processor .BatchSize = 10
212
212
processor .StartTicker (exeCtx .GetContext ())
0 commit comments