@@ -59,7 +59,7 @@ func TestFromMonitoringInfos_Counters(t *testing.T) {
5959
6060 got := FromMonitoringInfos (p , attempted , committed ).AllMetrics ().Counters ()
6161 size := len (got )
62- if size < 1 {
62+ if size != 1 {
6363 t .Fatalf ("Invalid array's size: got: %v, want: %v" , size , 1 )
6464 }
6565 if d := cmp .Diff (want , got [0 ]); d != "" {
@@ -187,7 +187,7 @@ func TestFromMonitoringInfos_PColCounters(t *testing.T) {
187187
188188 got := FromMonitoringInfos (p , attempted , committed ).AllMetrics ().PCols ()
189189 size := len (got )
190- if size < 1 {
190+ if size != 1 {
191191 t .Fatalf ("Invalid array's size: got: %v, want: %v" , size , 1 )
192192 }
193193 if d := cmp .Diff (want , got [0 ]); d != "" {
@@ -237,7 +237,7 @@ func TestFromMonitoringInfos_SampledByteSize(t *testing.T) {
237237
238238 got := FromMonitoringInfos (p , attempted , committed ).AllMetrics ().PCols ()
239239 size := len (got )
240- if size < 1 {
240+ if size != 1 {
241241 t .Fatalf ("Invalid array's size: got: %v, want: %v" , size , FromMonitoringInfos (p , attempted , committed ).AllMetrics ())
242242 }
243243 if d := cmp .Diff (want , got [0 ]); d != "" {
@@ -287,7 +287,7 @@ func TestFromMonitoringInfos_Distributions(t *testing.T) {
287287
288288 got := FromMonitoringInfos (p , attempted , committed ).AllMetrics ().Distributions ()
289289 size := len (got )
290- if size < 1 {
290+ if size != 1 {
291291 t .Fatalf ("Invalid array's size: got: %v, want: %v" , size , 1 )
292292 }
293293 if d := cmp .Diff (want , got [0 ]); d != "" {
@@ -337,7 +337,7 @@ func TestFromMonitoringInfos_Gauges(t *testing.T) {
337337
338338 got := FromMonitoringInfos (p , attempted , committed ).AllMetrics ().Gauges ()
339339 size := len (got )
340- if size < 1 {
340+ if size != 1 {
341341 t .Fatalf ("Invalid array's size: got: %v, want: %v" , size , 1 )
342342 }
343343 if d := cmp .Diff (want , got [0 ]); d != "" {
0 commit comments