@@ -263,7 +263,7 @@ func TestMonitoringConfigMetricsFailureThreshold(t *testing.T) {
263
263
agentInfo , err := info .NewAgentInfo (context .Background (), false )
264
264
require .NoError (t , err , "Error creating agent info" )
265
265
266
- sampleFiveErrorsStreamThreshold := uint (5 )
266
+ sampleSevenErrorsStreamThreshold := uint (7 )
267
267
sampleTenErrorsStreamThreshold := uint (10 )
268
268
269
269
tcs := []struct {
@@ -307,7 +307,7 @@ func TestMonitoringConfigMetricsFailureThreshold(t *testing.T) {
307
307
HTTP : & monitoringcfg.MonitoringHTTPConfig {
308
308
Enabled : false ,
309
309
},
310
- FailureThreshold : & sampleFiveErrorsStreamThreshold ,
310
+ FailureThreshold : & sampleSevenErrorsStreamThreshold ,
311
311
},
312
312
},
313
313
policy : map [string ]any {
@@ -323,7 +323,7 @@ func TestMonitoringConfigMetricsFailureThreshold(t *testing.T) {
323
323
"default" : map [string ]any {},
324
324
},
325
325
},
326
- expectedThreshold : sampleFiveErrorsStreamThreshold ,
326
+ expectedThreshold : sampleSevenErrorsStreamThreshold ,
327
327
},
328
328
{
329
329
name : "policy failure threshold uint" ,
@@ -334,7 +334,7 @@ func TestMonitoringConfigMetricsFailureThreshold(t *testing.T) {
334
334
HTTP : & monitoringcfg.MonitoringHTTPConfig {
335
335
Enabled : false ,
336
336
},
337
- FailureThreshold : & sampleFiveErrorsStreamThreshold ,
337
+ FailureThreshold : & sampleSevenErrorsStreamThreshold ,
338
338
},
339
339
},
340
340
policy : map [string ]any {
@@ -362,7 +362,7 @@ func TestMonitoringConfigMetricsFailureThreshold(t *testing.T) {
362
362
HTTP : & monitoringcfg.MonitoringHTTPConfig {
363
363
Enabled : false ,
364
364
},
365
- FailureThreshold : & sampleFiveErrorsStreamThreshold ,
365
+ FailureThreshold : & sampleSevenErrorsStreamThreshold ,
366
366
},
367
367
},
368
368
policy : map [string ]any {
@@ -390,7 +390,7 @@ func TestMonitoringConfigMetricsFailureThreshold(t *testing.T) {
390
390
HTTP : & monitoringcfg.MonitoringHTTPConfig {
391
391
Enabled : false ,
392
392
},
393
- FailureThreshold : & sampleFiveErrorsStreamThreshold ,
393
+ FailureThreshold : & sampleSevenErrorsStreamThreshold ,
394
394
},
395
395
},
396
396
policy : map [string ]any {
0 commit comments