mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
chore: cleanup
Signed-off-by: Manik Rana <manikrana54@gmail.com>
This commit is contained in:
parent
808d920415
commit
31a1b4bf7f
|
@ -915,17 +915,10 @@ expected_counter 17.0 1520879607.789
|
|||
require.Equal(t, tc.counterSampleProto.GetValue(), got[0])
|
||||
|
||||
case "application/openmetrics-text; version=1.0.0; charset=utf-8":
|
||||
if tc.enableCTZeroIngestion {
|
||||
require.Len(t, got, len(tc.exp))
|
||||
for i, e := range tc.exp {
|
||||
require.Equal(t, e.value, got[i])
|
||||
}
|
||||
return
|
||||
require.Len(t, got, len(tc.exp))
|
||||
for i, e := range tc.exp {
|
||||
require.Equal(t, e.value, got[i])
|
||||
}
|
||||
|
||||
// Expect only one, valid sample.
|
||||
require.Len(t, got, 1)
|
||||
require.Equal(t, tc.exp[0].value, got[0])
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue