prometheus / OpenMetrics

Evolving the Prometheus exposition format into a standard.
https://openmetrics.io
Apache License 2.0
2.37k stars 171 forks source link

Fix bad_grouping_or_ordering_0 test #232

Closed sinkingpoint closed 3 years ago

sinkingpoint commented 3 years ago

This test is really janky in that it actually tests 4 things, rather than just the metric interweaving it proports to test:

This commit fixes the first three to make this only test one thing

brian-brazil commented 3 years ago

That would make sense, the test was designed to test the specific code of the Python parser. Can you fix the Go validator so it correctly rejects this?

brian-brazil commented 3 years ago

I think you forgot to push the changes to the Go code itself.

sinkingpoint commented 3 years ago

Sure. Think that commit should do it. It's not the cleanest, but it seems to work

sinkingpoint commented 3 years ago

Fixed those. Thanks for all your guidance @brian-brazil

brian-brazil commented 3 years ago

Thanks!