fix: check correct test cases

Signed-off-by: Manik Rana <manikrana54@gmail.com>
This commit is contained in:
Manik Rana 2024-08-30 16:58:14 +05:30
parent c58a173382
commit 5f7bcff912

View file

@ -921,8 +921,8 @@ func TestManagerCTZeroIngestion(t *testing.T) {
case "application/openmetrics-text; version=1.0.0": case "application/openmetrics-text; version=1.0.0":
if tc.enableCTZeroIngestion && tc.exp.ts == 0 { if tc.enableCTZeroIngestion && tc.exp.ts == 0 {
require.Len(t, got, 2) require.Len(t, got, 2)
require.Equal(t, 0.0, got[0])
require.Equal(t, tc.exp.value, got[1]) require.Equal(t, tc.exp.value, got[1])
require.Equal(t, 0.0, got[1])
return return
} }