@@ -15,7 +15,7 @@ func close(wg *sync.WaitGroup, cancelFn context.CancelFunc) {
1515 wg .Wait ()
1616}
1717func TestDefaultEventProcessor_ProcessImpression (t * testing.T ) {
18- exeCtx := utils .NewCancelableExecutionCtxExecutionCtx ()
18+ exeCtx := utils .NewCancelableExecutionCtx ()
1919 processor := NewEventProcessor (exeCtx , 10 , 100 , 100 )
2020
2121 impression := BuildTestImpressionEvent ()
@@ -41,7 +41,7 @@ func (f *MockDispatcher) DispatchEvent(event LogEvent) (bool, error) {
4141}
4242
4343func TestDefaultEventProcessor_ProcessBatch (t * testing.T ) {
44- exeCtx := utils .NewCancelableExecutionCtxExecutionCtx ()
44+ exeCtx := utils .NewCancelableExecutionCtx ()
4545 processor := & QueueingEventProcessor {
4646 MaxQueueSize : 100 ,
4747 FlushInterval : 100 ,
@@ -78,7 +78,7 @@ func TestDefaultEventProcessor_ProcessBatch(t *testing.T) {
7878}
7979
8080func TestBatchEventProcessor_FlushesOnClose (t * testing.T ) {
81- exeCtx := utils .NewCancelableExecutionCtxExecutionCtx ()
81+ exeCtx := utils .NewCancelableExecutionCtx ()
8282 processor := & QueueingEventProcessor {
8383 MaxQueueSize : 100 ,
8484 FlushInterval : 30 * time .Second ,
@@ -106,7 +106,7 @@ func TestBatchEventProcessor_FlushesOnClose(t *testing.T) {
106106}
107107
108108func TestDefaultEventProcessor_ProcessBatchRevisionMismatch (t * testing.T ) {
109- exeCtx := utils .NewCancelableExecutionCtxExecutionCtx ()
109+ exeCtx := utils .NewCancelableExecutionCtx ()
110110 processor := & QueueingEventProcessor {
111111 MaxQueueSize : 100 ,
112112 FlushInterval : 100 ,
@@ -144,7 +144,7 @@ func TestDefaultEventProcessor_ProcessBatchRevisionMismatch(t *testing.T) {
144144}
145145
146146func TestDefaultEventProcessor_ProcessBatchProjectMismatch (t * testing.T ) {
147- exeCtx := utils .NewCancelableExecutionCtxExecutionCtx ()
147+ exeCtx := utils .NewCancelableExecutionCtx ()
148148 processor := & QueueingEventProcessor {
149149 MaxQueueSize : 100 ,
150150 FlushInterval : 100 ,
@@ -182,7 +182,7 @@ func TestDefaultEventProcessor_ProcessBatchProjectMismatch(t *testing.T) {
182182}
183183
184184func TestChanQueueEventProcessor_ProcessImpression (t * testing.T ) {
185- exeCtx := utils .NewCancelableExecutionCtxExecutionCtx ()
185+ exeCtx := utils .NewCancelableExecutionCtx ()
186186 processor := & QueueingEventProcessor {
187187 MaxQueueSize : 100 ,
188188 FlushInterval : 100 ,
@@ -206,7 +206,7 @@ func TestChanQueueEventProcessor_ProcessImpression(t *testing.T) {
206206}
207207
208208func TestChanQueueEventProcessor_ProcessBatch (t * testing.T ) {
209- exeCtx := utils .NewCancelableExecutionCtxExecutionCtx ()
209+ exeCtx := utils .NewCancelableExecutionCtx ()
210210 processor := & QueueingEventProcessor {MaxQueueSize : 100 , FlushInterval : 100 , Q : NewChanQueue (100 ), EventDispatcher : & MockDispatcher {}, wg : exeCtx .GetWaitSync ()}
211211 processor .BatchSize = 10
212212 processor .StartTicker (exeCtx .GetContext ())
0 commit comments