Better docstring on test

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
This commit is contained in:
György Krajcsovits 2024-10-21 13:48:21 +02:00
parent a6947e1e6d
commit 555bd6292a

View file

@ -593,10 +593,10 @@ func TestNHCBParserProtoBufParser_NoNHCBWhenExponential(t *testing.T) {
}, },
{ {
// TODO(krajorama): optimize: this should not be here. In case there's // TODO(krajorama): optimize: this should not be here. In case there's
// an exponential histogram we should not scrape the classic histogram. // an exponential histogram we should not convert the classic histogram
// TSDB will throw this away with storage.errDuplicateSampleForTimestamp // to NHCB. In the end TSDB will throw this away with
// at Commit(), but it needs to be parsed here after the exponential // storage.errDuplicateSampleForTimestamp error at Commit(), but it
// histogram. // is better to avoid this conversion in the first place.
m: "test_histogram{}", m: "test_histogram{}",
shs: &histogram.Histogram{ shs: &histogram.Histogram{
Schema: histogram.CustomBucketsSchema, Schema: histogram.CustomBucketsSchema,