@@ -158,7 +158,7 @@ func (s *PluginSuite) TestBrokerNoThreshold() {
158
158
go pb .Run (& tomb )
159
159
160
160
// send one item, it should be processed right now
161
- pb .PluginChannel <- ProfileAlert {ProfileID : uint (0 ), Alert : & models.Alert {}}
161
+ pb .PluginChannel <- models. ProfileAlert {ProfileID : uint (0 ), Alert : & models.Alert {}}
162
162
163
163
time .Sleep (200 * time .Millisecond )
164
164
@@ -175,7 +175,7 @@ func (s *PluginSuite) TestBrokerNoThreshold() {
175
175
176
176
// and another one
177
177
log .Printf ("second send" )
178
- pb .PluginChannel <- ProfileAlert {ProfileID : uint (0 ), Alert : & models.Alert {}}
178
+ pb .PluginChannel <- models. ProfileAlert {ProfileID : uint (0 ), Alert : & models.Alert {}}
179
179
180
180
time .Sleep (200 * time .Millisecond )
181
181
@@ -210,9 +210,9 @@ func (s *PluginSuite) TestBrokerRunGroupAndTimeThreshold_TimeFirst() {
210
210
go pb .Run (& tomb )
211
211
212
212
// send data
213
- pb .PluginChannel <- ProfileAlert {ProfileID : uint (0 ), Alert : & models.Alert {}}
214
- pb .PluginChannel <- ProfileAlert {ProfileID : uint (0 ), Alert : & models.Alert {}}
215
- pb .PluginChannel <- ProfileAlert {ProfileID : uint (0 ), Alert : & models.Alert {}}
213
+ pb .PluginChannel <- models. ProfileAlert {ProfileID : uint (0 ), Alert : & models.Alert {}}
214
+ pb .PluginChannel <- models. ProfileAlert {ProfileID : uint (0 ), Alert : & models.Alert {}}
215
+ pb .PluginChannel <- models. ProfileAlert {ProfileID : uint (0 ), Alert : & models.Alert {}}
216
216
217
217
time .Sleep (500 * time .Millisecond )
218
218
// because of group threshold, we shouldn't have data yet
@@ -247,15 +247,15 @@ func (s *PluginSuite) TestBrokerRunGroupAndTimeThreshold_CountFirst() {
247
247
go pb .Run (& tomb )
248
248
249
249
// send data
250
- pb .PluginChannel <- ProfileAlert {ProfileID : uint (0 ), Alert : & models.Alert {}}
251
- pb .PluginChannel <- ProfileAlert {ProfileID : uint (0 ), Alert : & models.Alert {}}
252
- pb .PluginChannel <- ProfileAlert {ProfileID : uint (0 ), Alert : & models.Alert {}}
250
+ pb .PluginChannel <- models. ProfileAlert {ProfileID : uint (0 ), Alert : & models.Alert {}}
251
+ pb .PluginChannel <- models. ProfileAlert {ProfileID : uint (0 ), Alert : & models.Alert {}}
252
+ pb .PluginChannel <- models. ProfileAlert {ProfileID : uint (0 ), Alert : & models.Alert {}}
253
253
254
254
time .Sleep (100 * time .Millisecond )
255
255
256
256
// because of group threshold, we shouldn't have data yet
257
257
assert .NoFileExists (t , s .outFile )
258
- pb .PluginChannel <- ProfileAlert {ProfileID : uint (0 ), Alert : & models.Alert {}}
258
+ pb .PluginChannel <- models. ProfileAlert {ProfileID : uint (0 ), Alert : & models.Alert {}}
259
259
260
260
time .Sleep (100 * time .Millisecond )
261
261
@@ -288,17 +288,17 @@ func (s *PluginSuite) TestBrokerRunGroupThreshold() {
288
288
go pb .Run (& tomb )
289
289
290
290
// send data
291
- pb .PluginChannel <- ProfileAlert {ProfileID : uint (0 ), Alert : & models.Alert {}}
292
- pb .PluginChannel <- ProfileAlert {ProfileID : uint (0 ), Alert : & models.Alert {}}
293
- pb .PluginChannel <- ProfileAlert {ProfileID : uint (0 ), Alert : & models.Alert {}}
291
+ pb .PluginChannel <- models. ProfileAlert {ProfileID : uint (0 ), Alert : & models.Alert {}}
292
+ pb .PluginChannel <- models. ProfileAlert {ProfileID : uint (0 ), Alert : & models.Alert {}}
293
+ pb .PluginChannel <- models. ProfileAlert {ProfileID : uint (0 ), Alert : & models.Alert {}}
294
294
295
295
time .Sleep (time .Second )
296
296
297
297
// because of group threshold, we shouldn't have data yet
298
298
assert .NoFileExists (t , s .outFile )
299
- pb .PluginChannel <- ProfileAlert {ProfileID : uint (0 ), Alert : & models.Alert {}}
300
- pb .PluginChannel <- ProfileAlert {ProfileID : uint (0 ), Alert : & models.Alert {}}
301
- pb .PluginChannel <- ProfileAlert {ProfileID : uint (0 ), Alert : & models.Alert {}}
299
+ pb .PluginChannel <- models. ProfileAlert {ProfileID : uint (0 ), Alert : & models.Alert {}}
300
+ pb .PluginChannel <- models. ProfileAlert {ProfileID : uint (0 ), Alert : & models.Alert {}}
301
+ pb .PluginChannel <- models. ProfileAlert {ProfileID : uint (0 ), Alert : & models.Alert {}}
302
302
303
303
time .Sleep (time .Second )
304
304
@@ -342,7 +342,7 @@ func (s *PluginSuite) TestBrokerRunTimeThreshold() {
342
342
go pb .Run (& tomb )
343
343
344
344
// send data
345
- pb .PluginChannel <- ProfileAlert {ProfileID : uint (0 ), Alert : & models.Alert {}}
345
+ pb .PluginChannel <- models. ProfileAlert {ProfileID : uint (0 ), Alert : & models.Alert {}}
346
346
347
347
time .Sleep (200 * time .Millisecond )
348
348
@@ -376,8 +376,8 @@ func (s *PluginSuite) TestBrokerRunSimple() {
376
376
377
377
defer os .Remove (s .outFile )
378
378
379
- pb .PluginChannel <- ProfileAlert {ProfileID : uint (0 ), Alert : & models.Alert {}}
380
- pb .PluginChannel <- ProfileAlert {ProfileID : uint (0 ), Alert : & models.Alert {}}
379
+ pb .PluginChannel <- models. ProfileAlert {ProfileID : uint (0 ), Alert : & models.Alert {}}
380
+ pb .PluginChannel <- models. ProfileAlert {ProfileID : uint (0 ), Alert : & models.Alert {}}
381
381
// make it wait a bit, CI can be slow
382
382
time .Sleep (time .Second )
383
383
0 commit comments