@@ -64,11 +64,11 @@ func TestOTLPMetrics(t *testing.T) {
6464 },
6565 {
6666 stat : types .StatisticMaximum ,
67- value : 2 ,
67+ value : 4 ,
6868 },
6969 {
7070 stat : types .StatisticSum ,
71- value : 12 , // we send Sum=2 six times in one minute
71+ value : 36 , // we send Sum=2 six times in one minute
7272 },
7373 {
7474 stat : types .StatisticAverage ,
@@ -110,7 +110,7 @@ func TestOTLPMetrics(t *testing.T) {
110110 },
111111 {
112112 stat : types .StatisticSum ,
113- value : 12 , // we send Sum=2 six times in one minute
113+ value : 36 , // we send Sum=2 six times in one minute
114114 },
115115 {
116116 stat : types .StatisticAverage ,
@@ -216,12 +216,12 @@ func TestOTLPMetrics(t *testing.T) {
216216 for _ , e := range m .expected {
217217 values , err := fetcher .Fetch (namespace , m .name , m .dimensions , e .stat , metric .MinuteStatPeriod )
218218 require .NoError (t , err )
219- require .GreaterOrEqual (t , len (values ), 3 , "Not enough metrics retrieved for namespace {%s} metric Name {%s} stat {%s}" , namespace , m .name , e .stat )
219+ assert .GreaterOrEqual (t , len (values ), 3 , "Not enough metrics retrieved for namespace {%s} metric Name {%s} stat {%s}" , namespace , m .name , e .stat )
220220
221221 // omit first/last metric as the 1m collection intervals may be missing data points from when the agent was started/stopped
222222 middleValues := values [1 : len (values )- 1 ]
223223 err = metric .IsAllValuesGreaterThanOrEqualToExpectedValueWithError (m .name , middleValues , e .value )
224- require .NoError (t , err )
224+ assert .NoError (t , err )
225225 }
226226 })
227227 }
0 commit comments