Skip to content

Commit d5f44c0

Browse files
committed
check each histogram
Signed-off-by: Ben Ye <[email protected]>
1 parent b48bd84 commit d5f44c0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

integration/native_histogram_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ func TestNativeHistogramIngestionAndQuery(t *testing.T) {
104104
for _, ss := range m {
105105
require.Empty(t, ss.Values)
106106
require.NotEmpty(t, ss.Histograms)
107+
for _, h := range ss.Histograms {
108+
require.NotEmpty(t, h)
109+
}
107110
}
108111

109112
result, err = c.QueryRange(`series_2`, series2Timestamp.Add(-time.Minute*10), series2Timestamp, time.Second)
@@ -114,6 +117,9 @@ func TestNativeHistogramIngestionAndQuery(t *testing.T) {
114117
for _, ss := range m {
115118
require.Empty(t, ss.Values)
116119
require.NotEmpty(t, ss.Histograms)
120+
for _, h := range ss.Histograms {
121+
require.NotEmpty(t, h)
122+
}
117123
}
118124

119125
result, err = c.Query(`series_1`, series2Timestamp)

0 commit comments

Comments
 (0)